Right now the behaviour is inconsistent. In the latest git repo
I tried the following:
$ git tag -a v99 -msdf
$ git tag -a v100 -m100
$ git describe
v100
$ git describe v99
v100
$ git describe v100
v100
$ git show v99
tag v99
Tagger: Andreas Ericsson <ae@op5.se>
Date: Tue Apr 6 11:27:28 2010 +0200
sdf
commit 8b5fe8c9ec3f961ec9b09844eca6225f06af5b0b
...
$ git show v100
tag v100
Tagger: Andreas Ericsson <ae@op5.se>
Date: Tue Apr 6 11:27:37 2010 +0200
100
commit 8b5fe8c9ec3f961ec9b09844eca6225f06af5b0b
...
$ ls .git/refs/tags/v{100,99}
.git/refs/tags/v100 .git/refs/tags/v99
So as you can see, something else is going on. Both tags here are
stashed as loose objects and both refs are unpacked.
Using either strverscmp(3) or allowing one to sort by tagging date
with the option to use first or latest would be preferrable. I'll
see what I can cook up during my lunch-break.
--
Andreas Ericsson andreas.ericsson@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html