Ryan Barrett's blog

Emacs vc-git tweaks

I use Emacs,
vc,
and git all pretty heavily. I know the cool kids use
magit and
egg, but good old vc has stuck with me
through four different “new hotness” version control systems – CVS, Perforce,
Subversion, and now git – and I’m sure it will still be around for many more to
come.

Still, git is a beast, even compared to other big (D)VCSes, and vc doesn’t
expose many of its features. A few in particular I sorely missed were staging
and unstaging individual files and smarter refreshing in vc-dir buffers. Here’s
the code in my .emacs that adds those features. I overrode a few existing vc
key bindings; feel free to change those, of course.

4 thoughts on “Emacs vc-git tweaks”

Woa! Somebody still using emacs… Seems emacs was too early doing everything, now people prefer vim and that python clone. Wish emacs would get more love. Especially on android there is no emacs editor that works and actively is worked on. Several vims but I refuse…