unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* 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

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).