From: Jeff King <peff@peff.net>
To: Carlo Arenas <carenas@gmail.com>
Cc: Benjamin Kircher <bkircher@0xadd.de>, git@vger.kernel.org
Subject: Re: git log with %(describe) placeholder does not find most recent tag
Date: Mon, 11 Oct 2021 12:23:32 -0400 [thread overview]
Message-ID: <YWRlBLu+st02X7MD@coredump.intra.peff.net> (raw)
In-Reply-To: <CAPUEsphLXcCw=Qj1Rw5ONf2GduQAs62VwkVd3gTt4=PLaGkBcg@mail.gmail.com>
On Mon, Oct 11, 2021 at 05:27:39AM -0700, Carlo Arenas wrote:
> 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
prev parent reply other threads:[~2021-10-11 16:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-11 8:08 git log with %(describe) placeholder does not find most recent tag Benjamin Kircher
2021-10-11 8:23 ` Bagas Sanjaya
2021-10-11 8:29 ` Benjamin Kircher
2021-10-11 12:27 ` Carlo Arenas
2021-10-11 16:23 ` Jeff King [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YWRlBLu+st02X7MD@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=bkircher@0xadd.de \
--cc=carenas@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).