summaryrefslogtreecommitdiffstats
path: root/pretty-formats.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-08-08 15:26:49 -0700
committerJunio C Hamano <gitster@pobox.com>2016-08-08 15:26:49 -0700
commite548d1b2c1b0ecaf83038da7b3098aa3c9466c0c (patch)
tree6022c61f9a7ded3a98b29c5424bf8dbb38868fe9 /pretty-formats.txt
parentadb9b58bf7b67b33fb06a5b6e7a385cb0a4ef837 (diff)
downloadgit-htmldocs-e548d1b2c1b0ecaf83038da7b3098aa3c9466c0c.tar.gz
Autogenerated HTML docs for v2.9.2-664-ga0a18
Diffstat (limited to 'pretty-formats.txt')
-rw-r--r--pretty-formats.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/pretty-formats.txt b/pretty-formats.txt
index 29b19b992..b95d67ec0 100644
--- a/pretty-formats.txt
+++ b/pretty-formats.txt
@@ -147,8 +147,14 @@ 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. The portion before the `@` is the refname as
+ given on the command line (so `git log -g refs/heads/master` would
+ yield `refs/heads/master@{0}`).
+- '%gd': shortened reflog selector; same as `%gD`, but the refname
+ portion is shortened for human readability (so `refs/heads/master`
+ becomes just `master`).
- '%gn': reflog identity name
- '%gN': reflog identity name (respecting .mailmap, see
linkgit:git-shortlog[1] or linkgit:git-blame[1])