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

Re: git-describe only works on full tags

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 17, 2008, 02:13 UTC
Message-ID
<7vhcf6cd3e.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<Pine.LNX.4.64.0803170137300.14822@fbirervta.pbzchgretzou.qr>
Jan Engelhardt <jengelh@computergmbh.de> writes:
> 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?

There is an option to tell git-describe to allow using non annotated tags, but that is not a defult.

This is a very deliberate design decision. Annotated tags are meant for public consumption, but lightweight tags are often used to locally mark points that are interesting during this current development session (e.g. "I am trying to improve by first breaking and then enhancing, and this one was the last-known working one"), and it is mighty annoying if such a tag is used in describe output.

Previous: Jan Engelhardt
Message 2 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.