Skip to content

Commit

Permalink
Document new --date=<format>
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Jul 14, 2007
1 parent b727a23 commit 1701872
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Documentation/git-rev-list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ SYNOPSIS
[ \--encoding[=<encoding>] ]
[ \--(author|committer|grep)=<pattern> ]
[ \--regexp-ignore-case ] [ \--extended-regexp ]
[ \--date={local|relative|default} ]
[ \--date={local|relative|default|iso|rfc|short} ]
[ [\--objects | \--objects-edge] [ \--unpacked ] ]
[ \--pretty | \--header ]
[ \--bisect ]
Expand Down Expand Up @@ -96,7 +96,7 @@ include::pretty-options.txt[]

Synonym for `--date=relative`.

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

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

Expand Down

0 comments on commit 1701872

Please sign in to comment.