atom/git-diff

Git diff only diffs when open folder has .git folder

Closed this issue · 8 comments

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.

@eranimo Sounds related to atom/atom#2203. Currently, Git-related features work if the root folder is the VCS root.

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.

+1 doesn't work in worktree

Indeed, worktree support needs to be added to libgit2 before we can support it: libgit2/libgit2#3159

washt commented

+1

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.