Thread (19 messages) flat view 19 messages, 8 authors, 2016-08-11

Re: Suggestion: drop 'g' in git-describe suffix

From: Andy Whitcroft <hidden>
Date: 2016-08-11 19:47:40

Han-Wen Nienhuys wrote:
Andy Whitcroft escreveu:
quoted
Han-Wen Nienhuys wrote:
quoted
Andy Whitcroft escreveu:
quoted
quoted
or some other non-hex character.
g is not a hex digit, hex is 0-f ??
Yes of course; silly me. Still I think it would be clearer if it used a
non-alphabet char, eg.

  tag+sha1

to separate the tag and the committish.
Well there is a non-alphabet character in there, a minus (-).  The g
prefix on the sha1 _fragment_ it to indicate that it is in fact a
truncated sha1, not a complete one.  
is this policy documented somewhere?  None of the tools understand it.

[lilydev@haring git]$ git describe
v1.4.3.3-g1e1f76e
[lilydev@haring git]$ git show g1e1f76e
fatal: ambiguous argument 'g1e1f76e': unknown revision or path not in
the working tree.
Use '--' to separate paths from revisions

My suggestion is to use

  v1.4.3.3+1e1f76e

here.
The 'whole' thing is valid as an object reference:

apw@pinky$ git describe
v1.4.3.3-g8cf249b
apw@pinky$ git show v1.4.3.3-g8cf249b
commit 8cf249b755c257ea19100b888ac612e601cdf96b
Merge: 15c3ffb... fa438a2...
[...]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help