From: Avery Pennarun <apenwarr@gmail.com>
To: "Dirk Süsserott" <newsletter@dirk.my1.cc>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: git-describe: what is the '-g' prefix good for?
Date: Thu, 16 Jul 2009 13:47:19 -0400 [thread overview]
Message-ID: <32541b130907161047h7df7fa4dsfa61ed65789f4c01@mail.gmail.com> (raw)
In-Reply-To: <4A5F5340.9030908@dirk.my1.cc>
2009/7/16 Dirk Süsserott <newsletter@dirk.my1.cc>:
> I'm a bit surprised about the output of git-describe: if I'm on a tag,
> git-describe tells the tag's name. Fine. If I commit sth. on top of
> that, it tells how far I'm away from that tag and the current commit's
> SHA1. Very fine. But then the SHA1 is preceeded with a '-g'. What's that
> for?
I'm sure it stands for something like "git". You don't want a random
number appended to your tagname (which is often a version number)
because it might be mistaken for part of the version number. The g
makes this less likely. It also differentiates between git and any
other version control system (except ones starting with 'g', I guess
:)) that might implement a similar feature.
Avery
prev parent reply other threads:[~2009-07-16 17:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-16 16:20 git-describe: what is the '-g' prefix good for? Dirk Süsserott
2009-07-16 17:47 ` Avery Pennarun [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=32541b130907161047h7df7fa4dsfa61ed65789f4c01@mail.gmail.com \
--to=apenwarr@gmail.com \
--cc=git@vger.kernel.org \
--cc=newsletter@dirk.my1.cc \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).