Skip to content

Commit 846b8f6

Browse files
marcowsgitster
authored andcommitted
Documentation: explain the meaning of "-g" in git-describe output
Signed-off-by: Markus Heidelberg <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0b3dcfe commit 846b8f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Documentation/git-describe.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ The number of additional commits is the number
105105
of commits which would be displayed by "git log v1.0.4..parent".
106106
The hash suffix is "-g" + 7-char abbreviation for the tip commit
107107
of parent (which was `2414721b194453f058079d897d13c4e377f92dc6`).
108+
The "g" prefix stands for "git" and is used to allow describing the version of
109+
a software depending on the SCM the software is managed with. This is useful
110+
in an environment where people may use different SCMs.
108111

109112
Doing a 'git describe' on a tag-name will just show the tag name:
110113

0 commit comments

Comments
 (0)