Re: git describe bug?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andreas Ericsson
Date: Tuesday, April 6, 2010 - 2:48 am

On 04/02/2010 08:31 PM, Shawn O. Pearce wrote:

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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git describe bug?, Dustin Sallings, (Fri Apr 2, 10:20 am)
Re: git describe bug?, Shawn O. Pearce, (Fri Apr 2, 11:31 am)
Re: git describe bug?, Andreas Ericsson, (Tue Apr 6, 2:48 am)
Re: git describe bug?, Shawn O. Pearce, (Sat Apr 10, 5:28 pm)
[PATCH] describe: Break annotated tag ties by tagger date, Shawn O. Pearce, (Sat Apr 10, 6:54 pm)
[PATCH v2 1/5] tag.c: Correct indentation, Shawn O. Pearce, (Mon Apr 12, 4:25 pm)
[PATCH v2 2/5] tag.h: Remove unused signature field, Shawn O. Pearce, (Mon Apr 12, 4:25 pm)
[PATCH v2 4/5] tag.c: Parse tagger date (if present), Shawn O. Pearce, (Mon Apr 12, 4:25 pm)