pretty: add merge and exclude options to %(describe)
commitb081547ec1de57162f2c1c7748aa09c861413d34
authorRené Scharfe <l.s.r@web.de>
Sun, 14 Feb 2021 10:10:57 +0000 (14 11:10 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Feb 2021 17:54:33 +0000 (17 09:54 -0800)
treed6fe0220ce4c6b34e6550650891c9b412890fdce
parent15ae82d5d6ccdcad00aeb456ff512d3031f03039
pretty: add merge and exclude options to %(describe)

Allow restricting the tags used by the placeholder %(describe) with the
options match and exclude.  E.g. the following command describes the
current commit using official version tags, without those for release
candidates:

   $ git log -1 --format='%(describe:match=v[0-9]*,exclude=*rc*)'

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/pretty-formats.txt
pretty.c
t/t4205-log-pretty-formats.sh