[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: what is the git equivalent to vc-hg-symbolic-revision-styles and how
From: |
Uwe Brauer |
Subject: |
Re: what is the git equivalent to vc-hg-symbolic-revision-styles and how to include name-rev |
Date: |
Tue, 13 Dec 2022 11:18:32 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
> 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
smime.p7s
Description: S/MIME cryptographic signature