diff options
author | Jeff King <peff@peff.net> | 2011-12-16 06:40:24 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-12-16 13:00:15 -0800 |
commit | cd1957f5fc6ecc5ae557246126d9e74c029ccd61 (patch) | |
tree | 0efe0b7c1d87b3c038fd55696a53a2a76db30148 /Documentation/pretty-formats.txt | |
parent | 7b6c5836cf02999955b68c79f1cf2d13040acbc3 (diff) | |
download | git-cd1957f5fc6ecc5ae557246126d9e74c029ccd61.tar.gz |
pretty: give placeholders to reflog identityjk/pretty-reglog-ent
When doing a reflog walk, you can get some information about
the reflog (such as the subject line), but not the identity
information (i.e., name and email).
Let's make those available, mimicing the options for author
and committer identity.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/pretty-formats.txt')
-rw-r--r-- | Documentation/pretty-formats.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/pretty-formats.txt b/Documentation/pretty-formats.txt index 561cc9f7d7..880b6f2e6f 100644 --- a/Documentation/pretty-formats.txt +++ b/Documentation/pretty-formats.txt @@ -132,6 +132,10 @@ The placeholders are: - '%N': commit notes - '%gD': reflog selector, e.g., `refs/stash@\{1\}` - '%gd': shortened reflog selector, e.g., `stash@\{1\}` +- '%gn': reflog identity name +- '%gN': reflog identity name (respecting .mailmap, see linkgit:git-shortlog[1] or linkgit:git-blame[1]) +- '%ge': reflog identity email +- '%gE': reflog identity email (respecting .mailmap, see linkgit:git-shortlog[1] or linkgit:git-blame[1]) - '%gs': reflog subject - '%Cred': switch color to red - '%Cgreen': switch color to green |