Enable viewing of worktrees under Repositories (#254992)

* init

* fix: correct configuration key for detecting Git worktrees

* Fixed misspelling of worktrees and populated worktree list

* exported parseGitWorktrees

* Replaced git commands with file system reader

* Removed trailing './git' from path

* Prevent errors when accessing empty worktree directory

* Enable worktree deletion

* code clean up

* Remove exposure to git extension

* labeling and minor fixes

* throw error when no worktrees created

* Error handling when getting worktrees

---------

Co-authored-by: bhavyaus <bhavyau@microsoft.com>
This commit is contained in:
Christy 😺
2025-07-14 11:27:00 -07:00
committed by GitHub
parent c068082c35
commit 4576aa4385
7 changed files with 188 additions and 5 deletions

View File

@@ -75,6 +75,7 @@
"command.rebase": "Rebase Branch...",
"command.createTag": "Create Tag...",
"command.deleteTag": "Delete Tag...",
"command.deleteWorktree": "Delete Worktree...",
"command.deleteRemoteTag": "Delete Remote Tag...",
"command.fetch": "Fetch",
"command.fetchPrune": "Fetch (Prune)",
@@ -217,6 +218,8 @@
"config.inputValidationSubjectLength": "Controls the commit message subject length threshold for showing a warning. Unset it to inherit the value of `#git.inputValidationLength#`.",
"config.detectSubmodules": "Controls whether to automatically detect Git submodules.",
"config.detectSubmodulesLimit": "Controls the limit of Git submodules detected.",
"config.detectWorktrees": "Controls whether to automatically detect Git worktrees.",
"config.detectWorktreesLimit": "Controls the limit of Git worktrees detected.",
"config.alwaysShowStagedChangesResourceGroup": "Always show the Staged Changes resource group.",
"config.alwaysSignOff": "Controls the signoff flag for all commits.",
"config.ignoreSubmodules": "Ignore modifications to submodules in the file tree.",
@@ -301,6 +304,7 @@
"submenu.remotes": "Remote",
"submenu.stash": "Stash",
"submenu.tags": "Tags",
"submenu.worktrees": "Worktrees",
"colors.added": "Color for added resources.",
"colors.modified": "Color for modified resources.",
"colors.stageModified": "Color for modified resources which have been staged.",