Questions tagged [vc-mode]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
25 views

vc-mode doesn't evaluate when mode-line-format is set with setq-default

I've this code in my init.el (setq-default mode-line-format (list (propertize " %b " 'face 'bufname) (propertize (concat "...
1
vote
1answer
90 views

Is there a way to see a log of the backend commands issued by VC commands?

I'd like to see the what commands are issued by the child process used by the various VC commands. Is there a way to log them or collect them without modifying the VC code? For example, I'd like to ...
2
votes
0answers
31 views

How to query the name of the current branch in an elisp function?

I'd like to know the current branch I'm in (in elisp), is there a generic function that returns the name of the current branch? From looking into vc-mode mode-line logic it seems this relies on ...
0
votes
1answer
17 views

Lags when navigating vc-root-diff buffer

When I move around the buffer *vc-diff* from vc-root-diff I experience lags. GNU Emacs 27.1 (build 1, x86_64-pc-cygwin) of 2020-10-29. With procmon I detected lots of: C:\opt\cygwin64\bin\git.exe --no-...
0
votes
0answers
44 views

Fontify parts of the mode-line

How do I most conveniently fontify/colorize parts of my mode-line. Specifically I want the vc branch named to have one color for master and another for other branches.
1
vote
0answers
41 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
157 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
135 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
249 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
151 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).
1
vote
3answers
793 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
64 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
281 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
477 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
32 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
252 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/...