summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-12-19 22:45:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-12-19 22:45:34 (GMT)
commitf008159fc2dec7b98e74736751d3e6ad8d9c060f (patch)
tree4db5028a52251c217533bdec9a6a09c9c4be041a /Documentation
parent3aead1cad7a9a35534b86763bbe8c97dfd3f1a03 (diff)
parentb1d31c8954f9c21b275f4fb7d872414b564c201c (diff)
downloadgit-f008159fc2dec7b98e74736751d3e6ad8d9c060f.zip
git-f008159fc2dec7b98e74736751d3e6ad8d9c060f.tar.gz
git-f008159fc2dec7b98e74736751d3e6ad8d9c060f.tar.bz2
Merge branch 'jk/trailers-placeholder-in-pretty'
In addition to %(subject), %(body), "log --pretty=format:..." learned a new placeholder %(trailers). * jk/trailers-placeholder-in-pretty: ref-filter: add support to display trailers as part of contents pretty: add %(trailers) format for displaying trailers of a commit message
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-for-each-ref.txt2
-rw-r--r--Documentation/pretty-formats.txt2
2 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/git-for-each-ref.txt b/Documentation/git-for-each-ref.txt
index 6d22974..abe13f3 100644
--- a/Documentation/git-for-each-ref.txt
+++ b/Documentation/git-for-each-ref.txt
@@ -168,6 +168,8 @@ of all lines of the commit message up to the first blank line. The next
line is 'contents:body', where body is all of the lines after the first
blank line. The optional GPG signature is `contents:signature`. The
first `N` lines of the message is obtained using `contents:lines=N`.
+Additionally, the trailers as interpreted by linkgit:git-interpret-trailers[1]
+are obtained as 'contents:trailers'.
For sorting purposes, fields with numeric values sort in numeric order
(`objectsize`, `authordate`, `committerdate`, `creatordate`, `taggerdate`).
diff --git a/Documentation/pretty-formats.txt b/Documentation/pretty-formats.txt
index 3bcee2d..47b286b 100644
--- a/Documentation/pretty-formats.txt
+++ b/Documentation/pretty-formats.txt
@@ -199,6 +199,8 @@ endif::git-rev-list[]
than given and there are spaces on its left, use those spaces
- '%><(<N>)', '%><|(<N>)': similar to '% <(<N>)', '%<|(<N>)'
respectively, but padding both sides (i.e. the text is centered)
+-%(trailers): display the trailers of the body as interpreted by
+ linkgit:git-interpret-trailers[1]
NOTE: Some placeholders may depend on other options given to the
revision traversal engine. For example, the `%g*` reflog options will