git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git describe not showing "nearest" tag

From
Jed Brown <jed@59a2.org>
Date
May 5, 2013, 04:48 UTC
Message-ID
<877gjeav64.fsf@mcs.anl.gov>

$ 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.

Next: Junio C Hamano
Message 1 of 3 in “git describe not showing "nearest" tag”
  1. Jed BrownMay 5, 2013
  2. Junio C HamanoMay 5, 2013
  3. Jed BrownMay 5, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.