* Some questions about git-name-rev
@ 2007-07-16 8:20 David Kastrup
0 siblings, 0 replies; only message in thread
From: David Kastrup @ 2007-07-16 8:20 UTC (permalink / raw)
To: git
Hi, I am working on git support in Emacs. This involves putting
version labels into the mode line and using them for specifying
revisions to diff.
40 digit commit numbers are not really fun for that.
So I need to use git-name-rev. If I call it with the option --tags,
it might return an empty string.
If I don't call it with --tags, _and_ the commit number I feed into it
is the output of some git-rev-list, am I _guaranteed_ to become some
output?
Now is there a way to _abbreviate_ the output to the shortest _valid_
form, namely not have something like ref/remote/heads/branchname (or
similar) when branchname is sufficient?
--
David Kastrup
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-16 8:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-16 8:20 Some questions about git-name-rev David Kastrup
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox