]> git.ipfire.org Git - thirdparty/git.git/commit - t/t4205-log-pretty-formats.sh
pretty: add tag option to %(describe)
authorEli Schwartz <eschwartz@archlinux.org>
Sun, 31 Oct 2021 17:15:09 +0000 (13:15 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Nov 2021 17:34:34 +0000 (10:34 -0700)
commit1d517ceab98fd5c3c1a8fb6ef575b44c31ea7a9e
treef702131331c063c19d935107ffe69f55e51a142b
parent3c6eb4ec50d9a4a9017fb8c1f220d12dceb206b1
pretty: add tag option to %(describe)

The %(describe) placeholder by default, like `git describe`, only
supports annotated tags. However, some people do use lightweight tags
for releases, and would like to describe those anyway. The command line
tool has an option to support this.

Teach the placeholder to support this as well.

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/pretty-formats.txt
pretty.c
t/t4205-log-pretty-formats.sh