vscode-git-graph icon indicating copy to clipboard operation
vscode-git-graph copied to clipboard

Nested git worktrees show up as Uncommitted Changes

Open xavierchanth opened this issue 2 years ago • 0 comments

Describe the Bug When you create a git worktree, it shows up as an uncommitted change.

Steps to Reproduce Steps to reproduce the behaviour:

  1. Open a repo in vscode
  2. Checkout branchA
  3. Create a nested worktree for branchB - git worktree add .wt/worktreeB branchB

Expected Behaviour Git Graph should locate worktrees and ignore them as changes.

Environment

  • Git Graph Extension Version: 1.30.0
  • Visual Studio Code Version: 1.84.1
  • Operating System: macOS arm64

Screenshots (optional) CleanShot 2023-11-07 at 11 33 40

Additional Context (optional) You could read from .git/worktrees/*/gitdir and drop the last path segment. (I can't think of a better way to do this)

⚠ Please make sure you complete all of the required sections of this template. Without this required information, it will be harder to replicate this bug, and cause additional delays in resolving it.

xavierchanth avatar Nov 07 '23 16:11 xavierchanth