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

Re: git log with %(describe) placeholder does not find most recent tag

From
Jeff King <peff@peff.net>
Date
Oct 11, 2021, 16:23 UTC
Message-ID
<YWRlBLu+st02X7MD@coredump.intra.peff.net>
In-Reply-To
<CAPUEsphLXcCw=Qj1Rw5ONf2GduQAs62VwkVd3gTt4=PLaGkBcg@mail.gmail.com>
On Mon, Oct 11, 2021 at 05:27:39AM -0700, Carlo Arenas wrote:
Show 9 quoted lines
> On Mon, Oct 11, 2021 at 1:10 AM Benjamin Kircher <bkircher@0xadd.de> wrote:
> > produces a different result than
> >
> >     git describe --tags
> 
> if the repository you are looking at has non annotated tags (the ones
> that have no signature or message and that are created by default with
> `git tag`), then that is expected and explained in the documentation
> for the '--tags' option you are using.

Yes, that's the case in the example repo he showed. I don't think there is currently a way to convince %(describe) to use "--tags" in the underlying describe command, but it seems like a reasonable extension if somebody is interested in writing it. We already take some options to %(describe), so the syntax is prepared to add more.

-Peff
Previous: Carlo Arenas
Message 5 of 5 in “git log with %(describe) placeholder does not find most recent tag”
  1. Benjamin KircherOct 11, 2021
  2. Bagas SanjayaOct 11, 2021
  3. Benjamin KircherOct 11, 2021
  4. Carlo ArenasOct 11, 2021
  5. Jeff KingOct 11, 2021

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.