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: 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	[thread overview]
Message-ID: <87ilifehdz.fsf@mat.ucm.es> (raw)
In-Reply-To: 87r0x44k1s.fsf@mat.ucm.es

[-- 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 --]

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

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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=87ilifehdz.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.