Questions tagged [vc]

The tag has no usage guidance.

8 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
180 views

Is there a more async or lazy vc-mode?

Question Does a "lazy" or "asynchronous" vc mode exist? Background Emacs vc mode is designed on the assumption that the version control backend is fast. Much of the core vc features wants the ...
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
0answers
30 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 ...
1
vote
0answers
112 views

Cannot figure out why vc-git.elc is always loaded on startup

This is more a curiosity, than a necessity. I'm playing around with startup times, and to have something to compare with, I wanted to see how fast emacs could start up pure. Running emacs -Q, emacs-...
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 ...
1
vote
0answers
24 views

Possible to make vc-dir aware of (hg) subrepo changes?

vc-dir works really well for most of my needs, as I use both hg and svn repositories. But most of the hg repos I work with have subrepositories. I typically use vc-dir buffers for each of the subrepos ...
0
votes
0answers
32 views

Despite commands working in Emacs shell or "M-!, still getting permission denied

I have Emacs 27.1 on Windows 10 using MSYS2 bash. I can successfully run bash from M-x shell: # echo $0 /usr/bin/bash Also, I can successfully run commands from `M-!". But some commands still ...
0
votes
0answers
19 views

vc-annotate: strip the last character of git commit id

When editing a file managed by Git, vc-annotate shows the output of git blame. As Git usually does, revisions are identified by a short commit id. The short commit id is abbreviated to be one ...