Skip to content

Commit b733a22

Browse files
committed
Ensures full related cache clearing
1 parent 76722f9 commit b733a22

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

src/views/branchesView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export class BranchesView extends ViewBase<'branches', BranchesViewNode, Branche
147147
registerViewCommand(
148148
this.getQualifiedCommand('refresh'),
149149
() => {
150-
this.container.git.resetCaches('branches');
150+
this.container.git.resetCaches('branches', 'worktrees');
151151
return this.refresh(true);
152152
},
153153
this,

src/views/remotesView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export class RemotesView extends ViewBase<'remotes', RemotesViewNode, RemotesVie
129129
registerViewCommand(
130130
this.getQualifiedCommand('refresh'),
131131
() => {
132-
this.container.git.resetCaches('branches', 'remotes');
132+
this.container.git.resetCaches('branches', 'remotes', 'worktrees');
133133
return this.refresh(true);
134134
},
135135
this,

src/views/repositoriesView.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,15 @@ export class RepositoriesView extends ViewBase<'repositories', RepositoriesNode,
7171
registerViewCommand(
7272
this.getQualifiedCommand('refresh'),
7373
() => {
74-
this.container.git.resetCaches('branches', 'contributors', 'remotes', 'stashes', 'status', 'tags');
74+
this.container.git.resetCaches(
75+
'branches',
76+
'contributors',
77+
'remotes',
78+
'stashes',
79+
'status',
80+
'tags',
81+
'worktrees',
82+
);
7583
return this.refresh(true);
7684
},
7785
this,

src/views/worktreesView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export class WorktreesView extends ViewBase<'worktrees', WorktreesViewNode, Work
145145
registerViewCommand(
146146
this.getQualifiedCommand('refresh'),
147147
async () => {
148-
this.container.git.resetCaches('worktrees');
148+
this.container.git.resetCaches('branches', 'status', 'worktrees');
149149
return this.refresh(true);
150150
},
151151
this,

0 commit comments

Comments
 (0)