Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
for-each-ref: document `creatordate` and `creator` fields
author
Eric Wong
<normalperson@yhbt.net>
Tue, 5 Jan 2016 03:51:57 +0000
(
03:51
+0000)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 5 Jan 2016 17:44:19 +0000
(09:44 -0800)
These were introduced back in 2006 at
3175aa1ec28c
but
never documented.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-for-each-ref.txt
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
282616c
)
diff --git
a/Documentation/git-for-each-ref.txt
b/Documentation/git-for-each-ref.txt
index 42408752d0848f0854308407ff7606b40f1e6eed..338a6efa8157427a7411e3ffadbb145f915a2eaa 100644
(file)
--- a/
Documentation/git-for-each-ref.txt
+++ b/
Documentation/git-for-each-ref.txt
@@
-109,6
+109,11
@@
In addition to the above, for commit and tag objects, the header
field names (`tree`, `parent`, `object`, `type`, and `tag`) can
be used to specify the value in the header field.
field names (`tree`, `parent`, `object`, `type`, and `tag`) can
be used to specify the value in the header field.
+For commit and tag objects, the special `creatordate` and `creator`
+fields will correspond to the appropriate date or name-email-date tuple
+from the `committer` or `tagger` fields depending on the object type.
+These are intended for working on a mix of annotated and lightweight tags.
+
Fields that have name-email-date tuple as its value (`author`,
`committer`, and `tagger`) can be suffixed with `name`, `email`,
and `date` to extract the named component.
Fields that have name-email-date tuple as its value (`author`,
`committer`, and `tagger`) can be suffixed with `name`, `email`,
and `date` to extract the named component.
@@
-119,8
+124,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. Finally, the optional GPG signature is `contents:signature`.
line is 'contents:body', where body is all of the lines after the first
blank line. Finally, the optional GPG signature is `contents:signature`.
-For sorting purposes, fields with numeric values sort in numeric
-
order (`objectsize`, `authordate`, `committe
rdate`, `taggerdate`).
+For sorting purposes, fields with numeric values sort in numeric
order
+
(`objectsize`, `authordate`, `committerdate`, `creato
rdate`, `taggerdate`).
All other fields are used to sort in their byte-value order.
In any case, a field name that refers to a field inapplicable to
All other fields are used to sort in their byte-value order.
In any case, a field name that refers to a field inapplicable to