From: Markus Heidelberg <markus.heidelberg@web.de>
To: Junio C Hamano <gitster@pobox.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Jay Soffian <jaysoffian@gmail.com>,
git@vger.kernel.org
Subject: [PATCH] Documentation: explain the meaning of "-g" in git-describe output
Date: Mon, 22 Mar 2010 21:45:33 +0100 [thread overview]
Message-ID: <201003222145.33383.markus.heidelberg@web.de> (raw)
In-Reply-To: <alpine.LFD.2.00.1003171811420.18017@i5.linux-foundation.org>
Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
---
Linus Torvalds, 2010-03-18 02:19:
>
> On Wed, 17 Mar 2010, Jay Soffian wrote:
> >
> > My guess, from 908e531 (Add a "git-describe" command, 2005-12-24), is
> > that it's short for "git":
>
> Indeed. I actually wanted to make it possible to use other SCM's, even if
> it's stupid. And git is not the only one that uses hashes for versioning,
> so the "g" prefix is there to allow others that use -hg or monotone or
> similar to work
I really hadn't thought of this obvious explanation.
Documentation/git-describe.txt | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Documentation/git-describe.txt b/Documentation/git-describe.txt
index 6fc5323..d9311dd 100644
--- a/Documentation/git-describe.txt
+++ b/Documentation/git-describe.txt
@@ -105,6 +105,9 @@ The number of additional commits is the number
of commits which would be displayed by "git log v1.0.4..parent".
The hash suffix is "-g" + 7-char abbreviation for the tip commit
of parent (which was `2414721b194453f058079d897d13c4e377f92dc6`).
+The "g" prefix stands for "git" and is used to allow describing the version of
+a software depending on the SCM the software is managed with. This is useful
+in an environment where people may use different SCMs.
Doing a 'git describe' on a tag-name will just show the tag name:
--
1.7.0.3.257.gcd709
prev parent reply other threads:[~2010-03-22 20:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-17 22:20 meaning of "-g" in git-describe output Markus Heidelberg
2010-03-17 23:14 ` Jay Soffian
2010-03-18 1:19 ` Linus Torvalds
2010-03-22 20:45 ` Markus Heidelberg [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=201003222145.33383.markus.heidelberg@web.de \
--to=markus.heidelberg@web.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=jaysoffian@gmail.com \
--cc=torvalds@linux-foundation.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