I noticed I never see in the mode line in which VCS branch I'm currently in, when I open a file in Emacs.
So I tried it with an empty Emacs, created a folder in Eshell, called
, and initialized Git with
git init inside
Then I have Emacs created a buffer inside
bar.txt. I saved the file, and in Eshell I did
[user ~/foo] git add bar.txt.
But I don't see any VCS-related in the mode line.
When I run C-x v = Emacs tells me that
bar.txt is not under version control. And the same story when I revert the buffer.
When I do the following M-:
(eval (executable-find "git"), it pointed to
/usr/bin/git which is correct.
Auto-revert-modedidn't help it. What else can I do in order to figure out how this issue is caused? Git in terminal tells me that
bar.txt is recognized and tracked by Git.