]> git.ipfire.org Git - thirdparty/git.git/commit - pretty.c
add '%d' pretty format specifier to show decoration
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Thu, 4 Sep 2008 21:40:03 +0000 (23:40 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Sep 2008 00:01:41 +0000 (17:01 -0700)
commit3b3d443feb1e7464c81e9a29c9b237cd6fa01fe5
treebc49c911e298e0fe400ab00b09e0222a89217653
parentcab4feb67db64d3d201145d9748b33d148f96185
add '%d' pretty format specifier to show decoration

Add a new format placeholder, %d, which expands to a ref name decoration
(think git log --decorate).  It expands to an empty string if the commit
has no decoration, or otherwise to a comma (and space) separated list of
decorations, surrounded by parentheses and a leading space.

Michael Dressel implemented an initial version and chose the letter d,
Junio suggested to add a leading space and parentheses.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/pretty-formats.txt
pretty.c