git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git describe not showing "nearest" tag
@ 2013-05-05  4:48 Jed Brown
  2013-05-05  6:42 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Jed Brown @ 2013-05-05  4:48 UTC (permalink / raw)
  To: Git List

$ git rev-list --count v3.2..master
9651
$ git rev-list --count v3.3..master
6378
$ git describe --tags master
v3.2-9651-ga018267

I would have expected to see v3.3-6378-ga018267, given the documentation:

  If multiple tags were found during the walk then the tag which has the
  fewest commits different from the input committish will be selected
  and output. Here fewest commits different is defined as the number of
  commits which would be shown by git log tag..input will be the
  smallest number of commits possible.


What's going on here?


The repository: https://bitbucket.org/petsc/petsc

This repository currently uses only lightweight tags.  As an experiment,
I replaced both v3.2 and v3.3 with annotated tags, but it did not affect
the 'git describe' output.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: git describe not showing "nearest" tag
  2013-05-05  4:48 git describe not showing "nearest" tag Jed Brown
@ 2013-05-05  6:42 ` Junio C Hamano
  2013-05-05  9:50   ` Jed Brown
  0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2013-05-05  6:42 UTC (permalink / raw)
  To: Jed Brown; +Cc: Git List

Jed Brown <jed@59A2.org> writes:

> $ git rev-list --count v3.2..master
> 9651
> $ git rev-list --count v3.3..master
> 6378
> $ git describe --tags master
> v3.2-9651-ga018267

Is 'master' a descendant of v3.3?  I.e. what does

	git rev-list master..v3.3

say?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: git describe not showing "nearest" tag
  2013-05-05  6:42 ` Junio C Hamano
@ 2013-05-05  9:50   ` Jed Brown
  0 siblings, 0 replies; 3+ messages in thread
From: Jed Brown @ 2013-05-05  9:50 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Git List

Junio C Hamano <gitster@pobox.com> writes:

> Is 'master' a descendant of v3.3?  I.e. what does
>
> 	git rev-list master..v3.3
>
> say?

Yes, this shows nothing.  Although 'master' is a descendant of v3.3, it
is not a --first-parent descendant of anything after v3.0.0.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-05-05  9:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-05  4:48 git describe not showing "nearest" tag Jed Brown
2013-05-05  6:42 ` Junio C Hamano
2013-05-05  9:50   ` Jed Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).