Re: meaning of "-g" in git-describe output
- From
Jay Soffian <jaysoffian@gmail.com>
- Date
- Mar 17, 2010, 23:14 UTC
- Message-ID
- <76718491003171614r2e8ce0e5r3e4799503194831c@mail.gmail.com>
- In-Reply-To
- <201003172320.45058.markus.heidelberg@web.de>
On Wed, Mar 17, 2010 at 6:20 PM, Markus Heidelberg <markus.heidelberg@web.de> wrote:
Show 5 quoted lines
> Hello, > > what is the meaning of the character 'g' in output like v1.0.4-14-g2414721 ? > Is it simply the first letter, which isn't used in hexadecimal numbers > or has it a deeper sense?
My guess, from 908e531 (Add a "git-describe" command, 2005-12-24), is that it's short for "git":
IOW, with something like Junios current tree, I get:
[torvalds@g5 git]$ git-describe parent
refs/tags/v1.0.4-g2414721b ie the current head of my "parent" branch (ie Junio) is based on v1.0.4,
but since it has a few commits on top of that, it has added the git hash
of the thing to the end: "-g" + 8-char shorthand for the commit
2414721b194453f058079d897d13c4e377f92dc6.-- http://marc.info/?t=113546113600001
But I think only Linus (+cc) knows. :-)
j.