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

git-describe only works on full tags

From
JEJan Engelhardt <jengelh@computergmbh.de>
Date
Mar 17, 2008, 00:41 UTC
Message-ID
<Pine.LNX.4.64.0803170137300.14822@fbirervta.pbzchgretzou.qr>
Hi,

For some reason, git-describe only prints a description relative to the last tag that was a tag object (and not just a ref). This is kinda a bug to me, what do others think?

$ git-rev-list --all 0d00ac11e0927e6d50d565a30344a00ce1f6b0e7 c5137b6f2f0c7b6715c9508bdaeb464da93d036a 5afc6395e0051d1bb1d37f17592a5eb7f4ac6f2d $ git-tag v0.1 5afc6395e0051d1bb1d37f17592a5eb7f4ac6f2d $ git-describe fatal: cannot describe '0d00ac11e0927e6d50d565a30344a00ce1f6b0e7' $ git-tag -m "0.2" v0.2 c5137b6f2f0c7b6715c9508bdaeb464da93d036a $ git-describe v0.2-1-g0d00ac1 $ git-tag v0.3 0d00ac11e0927e6d50d565a30344a00ce1f6b0e7 $ git-describe v0.2-1-g0d00ac1 $ git-tag -f -m "0.3" v0.3 0d00ac11e0927e6d50d565a30344a00ce1f6b0e7 $ git-describe v0.3

Next: Junio C Hamano
Message 1 of 2 in “git-describe only works on full tags”
  1. Jan EngelhardtMar 17, 2008
  2. Junio C HamanoMar 17, 2008

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.