Questions tagged [vc-mode]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
18 views

Git status on modeline to indicate if behind remote?

Can I get Emacs to indicate on the mode-line whether a push is needed, i.e. whether the repo is out of sync with origin? I've already got it telling me if a commit is needed using vc-status, but that ...
0
votes
1answer
49 views

Show powerline git information in dired

Powerline shows git branch information for a buffer that are under version control vc-mode. Only when vc-mode is set for a buffer the Git branch information is displayed. When inside dired there is no ...
4
votes
1answer
75 views

Disabling automatic add after resolving git conflict

After updating emacs (to 25.2.2 as shipping in ubuntu 18.04) I notice a change that completely breaks my conflict resolution flow in git. Once I resolve a conflict using emacs and save the file, emacs ...
0
votes
1answer
62 views

Find a version controlled project's root?

Trying to deduce a project root, using vc I'm getting errors, involving strange non-ASCII characters. I.e. invoking (vc-find-root (expand-file-name (buffer-file-name (get-buffer "fname")))) I get ...
3
votes
1answer
86 views

Make VC log history to follow file renames

I like to see full file history regardless file renames (and with Java convention class name == file name several refactoring makes following history difficult).
0
votes
3answers
527 views

Emacs doesn't recognize if file is under version control

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 ~/foo , and initialized ...
3
votes
1answer
61 views

Version control: how to inhibit opening email buffer upon breaking lock

My work uses GNU RCS for our version control system, but I don't think the specific VCS is relevant here. (I know RCS isn't the most modern system but it suits our needs fine and has the advantage of ...
4
votes
1answer
194 views

Version control information out of sync with certain modes

Sometimes, though seemingly not in a consistent way, some modes that use version control information do not get updated correctly after git commands are run (e.g.,diff-hl-mode or git-gutter-mode ...
5
votes
2answers
341 views

*vc-dir* show ignored files

From some newer version of Emacs (I currently on 24.5.1) after some operation *vc-dir* buffer begin to show ignored files. I specially craft .hgignore to make list of hg status short. But Emacs vc-...
3
votes
0answers
26 views

Determine if a directory is .gitignored with vc

I would like to determine if the current directory/file is ignored by .gitignore with vc. In this case, only git matters, but of course a general solution would be appreciated.
2
votes
1answer
200 views

How to add branch label next to projectile string with smart-mode-line

This is something I asked on the official repository. By default, smart-mode-line displays the current projectile project-name before the buffer-name, and the vc-mode string after it: ... [P/...