diff options
author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | 2008-09-04 23:40:03 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-09-04 17:01:41 -0700 |
commit | 3b3d443feb1e7464c81e9a29c9b237cd6fa01fe5 (patch) | |
tree | bc49c911e298e0fe400ab00b09e0222a89217653 /Documentation/pretty-formats.txt | |
parent | cab4feb67db64d3d201145d9748b33d148f96185 (diff) | |
download | git-3b3d443feb1e7464c81e9a29c9b237cd6fa01fe5.tar.gz |
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>
Diffstat (limited to 'Documentation/pretty-formats.txt')
-rw-r--r-- | Documentation/pretty-formats.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Documentation/pretty-formats.txt b/Documentation/pretty-formats.txt index 388d4925e6..f18d33e00b 100644 --- a/Documentation/pretty-formats.txt +++ b/Documentation/pretty-formats.txt @@ -116,6 +116,7 @@ The placeholders are: - '%cr': committer date, relative - '%ct': committer date, UNIX timestamp - '%ci': committer date, ISO 8601 format +- '%d': ref names, like the --decorate option of linkgit:git-log[1] - '%e': encoding - '%s': subject - '%b': body |