author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | |
Thu, 4 Sep 2008 21:40:03 +0000 (23:40 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 5 Sep 2008 00:01:41 +0000 (17:01 -0700) | ||
commit | 3b3d443feb1e7464c81e9a29c9b237cd6fa01fe5 | |
tree | bc49c911e298e0fe400ab00b09e0222a89217653 | tree | snapshot |
parent | cab4feb67db64d3d201145d9748b33d148f96185 | commit | diff |
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>
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 | diff | blob | history | |
pretty.c | diff | blob | history |