I use vc-mode to show information about the current VC state in my mode line, like this:
(setq mode-line-format '(… (vc-mode vc-mode) …))
However, I find the default format of vc-mode pretty verbose. Notably, it includes the name of the current VC backend, which is not particularly interesting to me—I usually know which VCS the current buffer as, and I don’t really use any VCS other than Git anyway.
How can I customize the appearance of vc-mode? Ideally, I’d hide the name of the backend, and show just the name of the current branch (or probably something similar to git describe).
Alternatively, if vc-mode can’t be customized, can I somehow get the current branch name from VC, for use in a custom (:eval …) construct?
