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