Re: meaning of "-g" in git-describe output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 17, 2010 at 6:20 PM, Markus Heidelberg
<markus.heidelberg@xxxxxx> wrote:
> 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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]