Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested git worktrees show up as Uncommitted Changes #790

Open
XavierChanth opened this issue Nov 7, 2023 · 0 comments
Open

Nested git worktrees show up as Uncommitted Changes #790

XavierChanth opened this issue Nov 7, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@XavierChanth
Copy link

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 XavierChanth added the bug Something isn't working label Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants