From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Uwe Brauer Newsgroups: gmane.emacs.help 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 Message-ID: <87r0x44k1s.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20060"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:liPwzRhHdHLvKkL9d4KzvZhHBl8= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 12 18:19:32 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p4mSh-0004xH-Di for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 12 Dec 2022 18:19:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4mSJ-000564-Ua; Mon, 12 Dec 2022 12:19:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4mSH-000514-Lq for help-gnu-emacs@gnu.org; Mon, 12 Dec 2022 12:19:05 -0500 Original-Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4mSF-0001tx-Sk for help-gnu-emacs@gnu.org; Mon, 12 Dec 2022 12:19:05 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1p4mSE-0004G4-3l for help-gnu-emacs@gnu.org; Mon, 12 Dec 2022 18:19:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Mail-Copies-To: never Received-SPF: pass client-ip=116.202.254.214; envelope-from=geh-help-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141683 Archived-At: 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 | | Fix doc strings regarding to section commands | * commit 7da1860c2a8cf7a2eb8f1596bf51af5532aa949b (master~1) | Author: Ikumi Keita | | Support starred section names | * commit d7dc696f47b210729885d6e033472db9e6433761 (master~2) | Author: Arash Esbati | | * 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/