Skip to content

Commit 01517bd

Browse files
committed
Merge branch 'ew/for-each-ref-doc' into maint
* ew/for-each-ref-doc: for-each-ref: document `creatordate` and `creator` fields
2 parents 353f685 + e914ef0 commit 01517bd

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Documentation/git-for-each-ref.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,11 @@ In addition to the above, for commit and tag objects, the header
146146
field names (`tree`, `parent`, `object`, `type`, and `tag`) can
147147
be used to specify the value in the header field.
148148

149+
For commit and tag objects, the special `creatordate` and `creator`
150+
fields will correspond to the appropriate date or name-email-date tuple
151+
from the `committer` or `tagger` fields depending on the object type.
152+
These are intended for working on a mix of annotated and lightweight tags.
153+
149154
Fields that have name-email-date tuple as its value (`author`,
150155
`committer`, and `tagger`) can be suffixed with `name`, `email`,
151156
and `date` to extract the named component.
@@ -157,8 +162,8 @@ line is 'contents:body', where body is all of the lines after the first
157162
blank line. The optional GPG signature is `contents:signature`. The
158163
first `N` lines of the message is obtained using `contents:lines=N`.
159164

160-
For sorting purposes, fields with numeric values sort in numeric
161-
order (`objectsize`, `authordate`, `committerdate`, `taggerdate`).
165+
For sorting purposes, fields with numeric values sort in numeric order
166+
(`objectsize`, `authordate`, `committerdate`, `creatordate`, `taggerdate`).
162167
All other fields are used to sort in their byte-value order.
163168

164169
There is also an option to sort by versions, this can be done by using

0 commit comments

Comments
 (0)