Skip to content

Commit

Permalink
Fixes worktree file watching on delete
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Sep 25, 2024
1 parent b31b09c commit af5f8d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

- Fixes [#3592](https://github.com/gitkraken/vscode-gitlens/issues/3592) - Connecting to an integration via Remotes view (but likely others) doesn't work
- Fixes an issue where virtual repositories for GitHub PRs from forks wouldn't load properly
- Fixes an issue where deleting a worktree would not always remove the worktree from the view

## [15.5.1] - 2024-09-16

Expand Down
2 changes: 1 addition & 1 deletion src/git/models/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const millisecondsPerDay = 24 * 60 * 60 * 1000;

const dotGitWatcherGlobFiles = 'index,HEAD,*_HEAD,MERGE_*,rebase-merge/**,sequencer/**';
const dotGitWatcherGlobWorktreeFiles =
'worktrees/**/index,worktrees/**/HEAD,worktrees/**/*_HEAD,worktrees/**/MERGE_*,worktrees/**/rebase-merge/**,worktrees/**/sequencer/**';
'worktrees/*,worktrees/**/index,worktrees/**/HEAD,worktrees/**/*_HEAD,worktrees/**/MERGE_*,worktrees/**/rebase-merge/**,worktrees/**/sequencer/**';

const dotGitWatcherGlobRoot = `{${dotGitWatcherGlobFiles}}`;
const dotGitWatcherGlobCommon = `{config,refs/**,${dotGitWatcherGlobWorktreeFiles}}`;
Expand Down

0 comments on commit af5f8d9

Please sign in to comment.