Thread (5 messages) 5 messages, 4 authors, 2021-10-11

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

flat view

From: Jeff King <hidden>
Date: 2021-10-11 16:23:39

On Mon, Oct 11, 2021 at 05:27:39AM -0700, Carlo Arenas wrote:
On Mon, Oct 11, 2021 at 1:10 AM Benjamin Kircher [off-list ref] wrote:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help