* git-describe: what is the '-g' prefix good for?
@ 2009-07-16 16:20 Dirk Süsserott
2009-07-16 17:47 ` Avery Pennarun
0 siblings, 1 reply; 2+ messages in thread
From: Dirk Süsserott @ 2009-07-16 16:20 UTC (permalink / raw)
To: Git Mailing List
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: git-describe: what is the '-g' prefix good for?
2009-07-16 16:20 git-describe: what is the '-g' prefix good for? Dirk Süsserott
@ 2009-07-16 17:47 ` Avery Pennarun
0 siblings, 0 replies; 2+ messages in thread
From: Avery Pennarun @ 2009-07-16 17:47 UTC (permalink / raw)
To: Dirk Süsserott; +Cc: Git Mailing List
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-16 17:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).