From: "Dirk Süsserott" <newsletter@dirk.my1.cc>
To: Git Mailing List <git@vger.kernel.org>
Subject: git-describe: what is the '-g' prefix good for?
Date: Thu, 16 Jul 2009 18:20:16 +0200 [thread overview]
Message-ID: <4A5F5340.9030908@dirk.my1.cc> (raw)
Hello there,
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 really don't want to ask for dropping it (I guess all people rely
on it), but does anybody know about the initial intention of that '-g'?
Cannot be easier parsing in porcelain scripts because either way the
actual state is unambiguously.
Just a curious
Dirk
next reply other threads:[~2009-07-16 16:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-16 16:20 Dirk Süsserott [this message]
2009-07-16 17:47 ` git-describe: what is the '-g' prefix good for? Avery Pennarun
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=4A5F5340.9030908@dirk.my1.cc \
--to=newsletter@dirk.my1.cc \
--cc=git@vger.kernel.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.
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).