Git diff only diffs when open folder has .git folder
Closed this issue · 8 comments
eranimo commented
I opened a folder in Atom that has git-diff installed. This folder has several repos. Git diff appears to not be working, as if it was an untracked file.
izuzak commented
@eranimo Sounds related to atom/atom#2203. Currently, Git-related features work if the root folder is the VCS root.
MattKunze commented
This also prevents the gutter from working when using git worktrees - in this case there is a .git
file that points to master repo metadata, not a folder.
kgunbin commented
+1 doesn't work in worktree
joshaber commented
Indeed, worktree support needs to be added to libgit2 before we can support it: libgit2/libgit2#3159
sangregoriopaolo commented
+1
washt commented
+1
JoshuaRogan commented
+1
maxbrunsfeld commented
I'm not sure when we'll fix this, but you can subscribe to atom/atom#2203 for updates on when we do. Sorry for the poor experience around this.