git-unite icon indicating copy to clipboard operation
git-unite copied to clipboard

git unite does not work with worktrees

Open gntpet opened this issue 3 years ago • 1 comments

Hey Guys, I noticed that git-unite does not work with the git worktrees. Please see the screenshot bellow. As you can see I can query the status of repository. But if try to run git unite, it give me an error.

image

gntpet avatar Apr 07 '21 11:04 gntpet

First I have ever heard of git worktrees and looks like an interesting feature. Based on a quick read of the docs the worktree indexes are buried under the .git directory in its own location. Git.Unite is currently only looking for the index under the .git root but might be possible to add flags to direct it towards the worktree index.

tawman avatar Apr 07 '21 13:04 tawman