@matheusbsbs / matheus-bagliano / commits / 1701872fc2
Fork 0

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>

Junio C Hamano committed Jul 13, 2007 at 23:48 UTC 1701872fc2cfc48c740175848c1ef6fc10eb0e10
1 file changed +9 -2
Documentation/git-rev-list.txt
+9 -2
@@ -28,7 +28,7 @@ SYNOPSIS
28 [ \--encoding[=<encoding>] ]
29 [ \--(author|committer|grep)=<pattern> ]
30 [ \--regexp-ignore-case ] [ \--extended-regexp ]
31 - [ \--date={local|relative|default} ]
31 + [ \--date={local|relative|default|iso|rfc|short} ]
32 [ [\--objects | \--objects-edge] [ \--unpacked ] ]
33 [ \--pretty | \--header ]
34 [ \--bisect ]
@@ -96,7 +96,7 @@ include::pretty-options.txt[]
96
97 Synonym for `--date=relative`.
98
99 ---date={relative,local,default}::
99 +--date={relative,local,default,iso,rfc}::
100
101 Only takes effect for dates shown in human-readable format, such
102 as when using "--pretty".
@@ -106,6 +106,13 @@ e.g. "2 hours ago".
106 +
107 `--date=local` shows timestamps in user's local timezone.
108 +
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 ++
116 `--date=default` shows timestamps in the original timezone
117 (either committer's or author's).
118