> I would like to have in the modline: the name of the branch, say master > *and* the let me call it «inverse version» like master~1 master~2 It seems that the command (shell-command "git name-rev HEAD") Does what I want. And it seems that vc-git-mode-line-string return a string to the mode line So how can I configure that function to have the result of git name-rev HEAD? I have never touched the modeline, so I have now idea how to proceed, any help would be appreciated. Regards Uwe Brauer