Questions tagged [vc-mode]
The vc-mode tag has no usage guidance.
19
questions
0
votes
0
answers
19
views
Run a command after vc-git-log-outgoing
I'm trying to fix a problem with this project: https://github.com/domtronn/spaceline-all-the-icons.el
Specifically this code which is supposed to count the number of commits ahead of another branch ...
0
votes
0
answers
81
views
Emacs 28.2 VC-git crashes on Mac Studio Ventura
I migrated from a trashcan Intel MacPro running macOS Monterey to a MacStudio running Ventura.
I installed Emacs from https://emacsformacosx.com/, version 28.2. On the Intel MacPro I am using Emacs 26....
0
votes
1
answer
46
views
Modern Emacs keeps opening related file from vc-diff buffer
Initially I opened Lags when navigating vc-root-diff buffer and the cause of slowness was Emacs opening referenced files by diff.
Back then I used Emacs 27.1. Now I'm on Emacs 28.2 and previous ...
0
votes
1
answer
67
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
1
answer
133
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 ...
3
votes
2
answers
303
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
1
answer
52
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
0
answers
62
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
0
answers
77
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
1
answer
273
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 ...
5
votes
1
answer
213
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
1
answer
658
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
1
answer
205
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
3
answers
984
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
1
answer
72
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
1
answer
323
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 ...
6
votes
2
answers
610
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
1
answer
49
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
1
answer
271
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/...