Questions tagged [vc]

`vc.el` is a generic version control interface that comes with Emacs. It supports Git, CVS, RCS, SRC, GNU Subversion, Bzr, Mercurial, Monotone and SCCS (CSSC)

14 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
2 answers
307 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 ...
ideasman42's user avatar
  • 8,546
3 votes
0 answers
269 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 ...
MattArmstrong's user avatar
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.
PythonNut's user avatar
  • 10.3k
1 vote
0 answers
72 views

Potential reason why vc-annotate output is sometimes incomplete?

On Emacs 27.1 running on Linux, with Subversion backend, vc-annotate does not always annotate the complete file (seen on 3000-lines, 110KB text file). The vc-annotate-mode buffer holds the beginning ...
PRouleau's user avatar
  • 786
1 vote
0 answers
174 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-...
Ole's user avatar
  • 131
1 vote
0 answers
79 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 ...
Vultan's user avatar
  • 121
1 vote
0 answers
29 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 ...
ned_zeppelin's user avatar
0 votes
0 answers
8 views

Cannot make vc-style wrapping of git commit to work

None of these functions currently perform works as I except: (defun vc-git-commit () "Commit (via git)." (interactive) (vc-git--run-command-string nil "commit") (vc-dir-...
Nordlöw's user avatar
  • 497
0 votes
0 answers
8 views

Prevent `vc-dir` from showing untracked directories recursively

Is there a setting to prevent vc-dir from showing untracked directories recursively and instead only show the directory as untracked? The former alternative is way to slow and should IMO be the ...
Nordlöw's user avatar
  • 497
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 ...
Cameron Ball's user avatar
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....
ovidiu's user avatar
  • 101
0 votes
1 answer
60 views

prevent symbolic link follow from git repo HOWTO

I have git repo here: ~/git/myrepo/ then I do: ln -s ~/external_dir ~/git/myrepo emacs follows symbolic link when opening the file: ~/git/myrepo/external_dir/somefile.txt I'd like to prevent it, ...
vibrys's user avatar
  • 21
0 votes
0 answers
245 views

Run pre-commit hooks when using magit, poetry, and tramp

This is an emacs & magit version of the following question, with an added twist. https://stackoverflow.com/questions/72839263/access-python-interpreter-in-vscode-version-controll-when-using-pre-...
q.undertow's user avatar
0 votes
0 answers
49 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 ...
Gilles 'SO- stop being evil''s user avatar