]> git.ipfire.org Git - thirdparty/git.git/commit - pretty.c
pretty: allow %(trailers) options with explicit value
authorAnders Waldenborg <anders@0x63.nu>
Tue, 29 Jan 2019 06:49:00 +0000 (07:49 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 Jan 2019 18:03:09 +0000 (10:03 -0800)
commit4f732e0fd7a524759424c817b92848949db1e2db
tree18d55a44356ebf85b030b74874c5ea406130a00c
parent42617752d4b22d616e276528ba4d155e6fff1835
pretty: allow %(trailers) options with explicit value

In addition to old %(trailers:only) it is now allowed to write
%(trailers:only=yes)

By itself this only gives (the not quite so useful) possibility to have
users change their mind in the middle of a formatting
string (%(trailers:only=true,only=false)). However, it gives users the
opportunity to override defaults from future options.

Signed-off-by: Anders Waldenborg <anders@0x63.nu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/pretty-formats.txt
pretty.c
t/t4205-log-pretty-formats.sh