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

Odd results with git-describe

From
BSBjörn Steinbrink <bsteinbr@gmail.com>
Date
Aug 6, 2014, 09:18 UTC
Message-ID
<CACPtaxbeB4fjwsKcd7SOzz2yYYUnWUYdaSc3qBoRoSjVxc6Skw@mail.gmail.com>
Hi,

with rust's git repo -- located at https://github.com/rust-lang/rust.git -- we see odd results from git-describe for the latest tag.

$ git rev-parse HEAD 795f6ae829ab1bfd72394a5da9096e2717ec0f62

$ git describe  --debug
searching to describe HEAD
finished search at 7140d7c52bdf55daf0b978a19706d20c3bf7ee92
 annotated       3627 0.10
 annotated       5929 0.9
 annotated       8581 0.8
 annotated      11686 0.7
 annotated      14540 0.6
 annotated      15230 0.11.0
traversed 15232 commits
0.10-3627-g795f6ae

Somehow it reports that 0.11.0 is missing tons of commits that are in HEAD. rev-list disagrees with this:

$ git rev-list 0.11.0.. | wc -l 1155

The `SEARCH STRATEGY` section of the manpage says that the commit numbers for describe and rev-list should match, which is not the case here.

Björn
Message 1 of 1 in “Odd results with git-describe”
  1. Björn SteinbrinkAug 6, 2014

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.