aboutsummaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-10-03 03:03:22 -0700
committerJunio C Hamano <gitster@pobox.com>2007-10-03 03:03:22 -0700
commit5e5b2b98c844c791c87a3a084d7748b9d6888a0a (patch)
tree08c211a872faf7738748578c03bfbce89cef8041 /Documentation
parentfed276e7524d6a80ae5dec037d586bd28543fc79 (diff)
parent96b2d4fa927c5055adc5b1d08f10a5d7352e2989 (diff)
downloadgit-5e5b2b98c844c791c87a3a084d7748b9d6888a0a.tar.gz
git-5e5b2b98c844c791c87a3a084d7748b9d6888a0a.tar.xz
Merge branch 'ap/dateformat'
* ap/dateformat: Add a test script for for-each-ref, including test of date formatting dateformat: parse %(xxdate) %(yydate:format) correctly Make for-each-ref's grab_date() support per-atom formatting Make for-each-ref allow atom names like "<name>:<something>" parse_date_format(): convert a format name to an enum date_mode
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-for-each-ref.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/git-for-each-ref.txt b/Documentation/git-for-each-ref.txt
index 6df8e8500..f1f90cca6 100644
--- a/Documentation/git-for-each-ref.txt
+++ b/Documentation/git-for-each-ref.txt
@@ -100,6 +100,11 @@ In any case, a field name that refers to a field inapplicable to
the object referred by the ref does not cause an error. It
returns an empty string instead.
+As a special case for the date-type fields, you may specify a format for
+the date by adding one of `:default`, `:relative`, `:short`, `:local`,
+`:iso8601` or `:rfc2822` to the end of the fieldname; e.g.
+`%(taggerdate:relative)`.
+
EXAMPLES
--------