[syslinux] hdt: git tag vs. git describe

Sebastian Herbszt herbszt at gmx.de
Tue May 12 14:53:13 PDT 2009


H. Peter Anvin wrote:
> Sebastian Herbszt wrote:
>> # git tag -l | grep hdt-0.3.3
>> hdt-0.3.3
>> 
>> # git describe
>> hdt-0.3.1-78-g78fdb43
>> 
>> Shouldn't "git describe" print something like "hdt-0.3.3-123-g456789"?
>> Why does it still use the hdt-0.3.1 tag?
>> 
> 
> First of all, make sure you have the proper tags... second, it'll pick 
> whichever tag has fewer commits delta from the current one.  I don't 
> know why in your case that would be hdt-0.3.1.
> 
> Looking at "gitk" might help explain it?

Unfortunatelly i didn't understand its output.

But i think i figured it out. The key seems to be "annotated tag"; the man page for
git-describe says
"Annotated tags will always be preferred over lightweight tags, and tags with newer
dates will always be preferred over tags with older dates."

So i created a new annotated tag for "b691a5d99c460e6aefe60d9557bde2dc2c98fe34"
(hdt-0.3.3) with
git tag -a hdt-0.3.3a b691a5d99c460e6aefe60d9557bde2dc2c98fe34

and now "git describe" displays "hdt-0.3.3a-3-g78fdb43".
I am using git 1.5.2.4.

- Sebastian




More information about the Syslinux mailing list