diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-12-19 14:45:34 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-12-19 14:45:34 -0800 |
commit | f008159fc2dec7b98e74736751d3e6ad8d9c060f (patch) | |
tree | 4db5028a52251c217533bdec9a6a09c9c4be041a /Documentation/git-for-each-ref.txt | |
parent | 3aead1cad7a9a35534b86763bbe8c97dfd3f1a03 (diff) | |
parent | b1d31c8954f9c21b275f4fb7d872414b564c201c (diff) | |
download | git-f008159fc2dec7b98e74736751d3e6ad8d9c060f.tar.gz |
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/git-for-each-ref.txt')
-rw-r--r-- | Documentation/git-for-each-ref.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/git-for-each-ref.txt b/Documentation/git-for-each-ref.txt index 6d22974da6..abe13f3bed 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`). |