Skip to content

Commit 108cb77

Browse files
committed
Merge branch 'ew/for-each-ref-doc'
* ew/for-each-ref-doc: for-each-ref: document `creatordate` and `creator` fields
2 parents d512c86 + e914ef0 commit 108cb77

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
@@ -142,6 +142,11 @@ In addition to the above, for commit and tag objects, the header
142142
field names (`tree`, `parent`, `object`, `type`, and `tag`) can
143143
be used to specify the value in the header field.
144144

145+
For commit and tag objects, the special `creatordate` and `creator`
146+
fields will correspond to the appropriate date or name-email-date tuple
147+
from the `committer` or `tagger` fields depending on the object type.
148+
These are intended for working on a mix of annotated and lightweight tags.
149+
145150
Fields that have name-email-date tuple as its value (`author`,
146151
`committer`, and `tagger`) can be suffixed with `name`, `email`,
147152
and `date` to extract the named component.
@@ -153,8 +158,8 @@ line is 'contents:body', where body is all of the lines after the first
153158
blank line. The optional GPG signature is `contents:signature`. The
154159
first `N` lines of the message is obtained using `contents:lines=N`.
155160

156-
For sorting purposes, fields with numeric values sort in numeric
157-
order (`objectsize`, `authordate`, `committerdate`, `taggerdate`).
161+
For sorting purposes, fields with numeric values sort in numeric order
162+
(`objectsize`, `authordate`, `committerdate`, `creatordate`, `taggerdate`).
158163
All other fields are used to sort in their byte-value order.
159164

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

0 commit comments

Comments
 (0)