* what is the git equivalent to vc-hg-symbolic-revision-styles and how to include name-rev
@ 2022-12-12 17:18 Uwe Brauer
2022-12-13 10:18 ` Uwe Brauer
0 siblings, 1 reply; 2+ messages in thread
From: Uwe Brauer @ 2022-12-12 17:18 UTC (permalink / raw)
To: help-gnu-emacs
Hi
I have set vc-hg-symbolic-revision-styles to
,----
| ("[{branch}]:({topic}):{rev}")
| Original value was
| (builtin-active-bookmark "{if(bookmarks,sub(' ',',',bookmarks),if(phabdiff,phabdiff,shortest(node,6)))}")
`----
Since I find this more appealing.
Now,
1. What is the git equivalent to this variable in order to configure
the modline
2. Maybe more difficult, I am used to display git graphs with
following command from a terminal:
git log --since=2years --graph --color=always --all --decorate --pretty=short | git name-rev --annotate-stdin | less -R
Giving me
* commit ba70baec6ca95c609e794624ca589c1de9ea02d8 (master) (HEAD -> master, svannah/master, svannah/HEAD)
| Author: Ikumi Keita <ikumi@ikumi.que.jp>
|
| Fix doc strings regarding to section commands
|
* commit 7da1860c2a8cf7a2eb8f1596bf51af5532aa949b (master~1)
| Author: Ikumi Keita <ikumi@ikumi.que.jp>
|
| Support starred section names
|
* commit d7dc696f47b210729885d6e033472db9e6433761 (master~2)
| Author: Arash Esbati <arash@gnu.org>
|
| * latex.el (LaTeX-env-contents): Add the "nowarn" key.
|
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
Any idea how to achieve this?
Thanks and regards
Uwe Brauer
--
Warning: Content may be disturbing to some audiences
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military.
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine.
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: what is the git equivalent to vc-hg-symbolic-revision-styles and how to include name-rev
2022-12-12 17:18 what is the git equivalent to vc-hg-symbolic-revision-styles and how to include name-rev Uwe Brauer
@ 2022-12-13 10:18 ` Uwe Brauer
0 siblings, 0 replies; 2+ messages in thread
From: Uwe Brauer @ 2022-12-13 10:18 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 532 bytes --]
> 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
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-12-13 10:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-12 17:18 what is the git equivalent to vc-hg-symbolic-revision-styles and how to include name-rev Uwe Brauer
2022-12-13 10:18 ` Uwe Brauer
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.