@@ -42,9 +42,9 @@ const millisecondsPerMinute = 60 * 1000;
42
42
const millisecondsPerHour = 60 * 60 * 1000 ;
43
43
const millisecondsPerDay = 24 * 60 * 60 * 1000 ;
44
44
45
- const dotGitWatcherGlobFiles = 'index,HEAD,*_HEAD,MERGE_*,rebase-merge/**,sequencer/**' ;
45
+ const dotGitWatcherGlobFiles = 'index,HEAD,*_HEAD,MERGE_*,rebase-apply/**,rebase- merge/**,sequencer/**' ;
46
46
const dotGitWatcherGlobWorktreeFiles =
47
- 'worktrees/*,worktrees/**/index,worktrees/**/HEAD,worktrees/**/*_HEAD,worktrees/**/MERGE_*,worktrees/**/rebase-merge/**,worktrees/**/sequencer/**' ;
47
+ 'worktrees/*,worktrees/**/index,worktrees/**/HEAD,worktrees/**/*_HEAD,worktrees/**/MERGE_*,worktrees/**/rebase-merge/**,worktrees/**/rebase-apply/**,worktrees/**/ sequencer/**' ;
48
48
49
49
const dotGitWatcherGlobRoot = `{${ dotGitWatcherGlobFiles } }` ;
50
50
const dotGitWatcherGlobCommon = `{config,refs/**,${ dotGitWatcherGlobWorktreeFiles } }` ;
@@ -454,7 +454,7 @@ export class Repository implements Disposable {
454
454
455
455
@debug ( )
456
456
private onRepositoryChanged ( uri : Uri | undefined , base : Uri , _reason : 'create' | 'change' | 'delete' ) {
457
- // TODO @eamodio Revisit -- as I can 't seem to get this to work as a negative glob pattern match when creating the watcher
457
+ // VS Code won 't work with negative glob pattern match when creating the watcher, so we have to ignore it here
458
458
if ( uri ?. path . includes ( '/fsmonitor--daemon/' ) ) {
459
459
return ;
460
460
}
@@ -467,7 +467,7 @@ export class Repository implements Disposable {
467
467
const match =
468
468
uri != null
469
469
? // Move worktrees first, since if it is in a worktree it isn't affecting this repo directly
470
- / ( w o r k t r e e s | i n d e x | H E A D | F E T C H _ H E A D | O R I G _ H E A D | C H E R R Y _ P I C K _ H E A D | M E R G E _ H E A D | R E B A S E _ H E A D | r e b a s e - m e r g e | R E V E R T _ H E A D | c o n f i g | r e f s \/ (?: h e a d s | r e m o t e s | s t a s h | t a g s ) ) / . exec (
470
+ / ( w o r k t r e e s | i n d e x | H E A D | F E T C H _ H E A D | O R I G _ H E A D | C H E R R Y _ P I C K _ H E A D | M E R G E _ H E A D | R E B A S E _ H E A D | r e b a s e - m e r g e | r e b a s e - a p p l y | R E V E R T _ H E A D | c o n f i g | r e f s \/ (?: h e a d s | r e m o t e s | s t a s h | t a g s ) ) / . exec (
471
471
this . container . git . getRelativePath ( uri , base ) ,
472
472
)
473
473
: undefined ;
@@ -504,6 +504,7 @@ export class Repository implements Disposable {
504
504
505
505
case 'REBASE_HEAD' :
506
506
case 'rebase-merge' :
507
+ case 'rebase-apply' :
507
508
this . fireChange ( RepositoryChange . Rebase , RepositoryChange . PausedOperationStatus ) ;
508
509
return ;
509
510
0 commit comments