Skip to content

Commit 1701872

Browse files
committed
Document new --date=<format>
Now, git-log family can take full range of internally supported date format to their --date=<format> argument. Document it. Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent b727a23 commit 1701872

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Documentation/git-rev-list.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ SYNOPSIS
2828
[ \--encoding[=<encoding>] ]
2929
[ \--(author|committer|grep)=<pattern> ]
3030
[ \--regexp-ignore-case ] [ \--extended-regexp ]
31-
[ \--date={local|relative|default} ]
31+
[ \--date={local|relative|default|iso|rfc|short} ]
3232
[ [\--objects | \--objects-edge] [ \--unpacked ] ]
3333
[ \--pretty | \--header ]
3434
[ \--bisect ]
@@ -96,7 +96,7 @@ include::pretty-options.txt[]
9696

9797
Synonym for `--date=relative`.
9898

99-
--date={relative,local,default}::
99+
--date={relative,local,default,iso,rfc}::
100100

101101
Only takes effect for dates shown in human-readable format, such
102102
as when using "--pretty".
@@ -106,6 +106,13 @@ e.g. "2 hours ago".
106106
+
107107
`--date=local` shows timestamps in user's local timezone.
108108
+
109+
`--date=iso` (or `--date=iso8601`) shows timestamps in ISO 8601 format.
110+
+
111+
`--date=rfc` (or `--date=rfc2822`) shows timestamps in RFC 2822
112+
format, often found in E-mail messages.
113+
+
114+
`--date=short` shows only date but not time, in `YYYY-MM-DD` fomat.
115+
+
109116
`--date=default` shows timestamps in the original timezone
110117
(either committer's or author's).
111118

0 commit comments

Comments
 (0)