summaryrefslogtreecommitdiff
path: root/Documentation/pretty-formats.txt
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2016-07-22 19:51:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-07-22 20:47:33 (GMT)
commit522259dc3adf49b59d76ee046a2d1361b171e32f (patch)
treea98ec4bec330f1204bd1e99895a49aa04d3b1c41 /Documentation/pretty-formats.txt
parent83c9f95cce99bcd383c78d614d614e72a4015e59 (diff)
downloadgit-522259dc3adf49b59d76ee046a2d1361b171e32f.zip
git-522259dc3adf49b59d76ee046a2d1361b171e32f.tar.gz
git-522259dc3adf49b59d76ee046a2d1361b171e32f.tar.bz2
doc/pretty-formats: describe index/time formats for %gd
The "reflog selector" format changes based on a series of heuristics, and that applies equally to both stock "log -g" output, as well as "--format=%gd". The documentation for "%gd" doesn't cover this. Let's mention the multiple formats and refer the user back to the "-g" section for the complete rules. 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.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/Documentation/pretty-formats.txt b/Documentation/pretty-formats.txt
index 29b19b9..36a300a 100644
--- a/Documentation/pretty-formats.txt
+++ b/Documentation/pretty-formats.txt
@@ -147,8 +147,11 @@ endif::git-rev-list[]
"U" for a good signature with unknown validity and "N" for no signature
- '%GS': show the name of the signer for a signed commit
- '%GK': show the key used to sign a signed commit
-- '%gD': reflog selector, e.g., `refs/stash@{1}`
-- '%gd': shortened reflog selector, e.g., `stash@{1}`
+- '%gD': reflog selector, e.g., `refs/stash@{1}` or
+ `refs/stash@{2 minutes ago`}; the format follows the rules described
+ for the `-g` option
+- '%gd': shortened reflog selector, e.g., `stash@{1}` or
+ `stash@{2 minutes ago}`
- '%gn': reflog identity name
- '%gN': reflog identity name (respecting .mailmap, see
linkgit:git-shortlog[1] or linkgit:git-blame[1])