all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: help-gnu-emacs@gnu.org
Subject: what is the git equivalent to vc-hg-symbolic-revision-styles and how to include name-rev
Date: Mon, 12 Dec 2022 18:18:55 +0100	[thread overview]
Message-ID: <87r0x44k1s.fsf@mat.ucm.es> (raw)

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/




             reply	other threads:[~2022-12-12 17:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-12 17:18 Uwe Brauer [this message]
2022-12-13 10:18 ` what is the git equivalent to vc-hg-symbolic-revision-styles and how to include name-rev Uwe Brauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r0x44k1s.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.