login
Header Space

 
 

[PATCH] Document new --date=<format>

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Cc: Robin Rosenberg <robin.rosenberg@...>
Date: Saturday, July 14, 2007 - 2:49 am

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>
---
 * And the documentation...

 Documentation/git-rev-list.txt |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/Documentation/git-rev-list.txt b/Documentation/git-rev-list.txt
index 20dcac6..08e7573 100644
--- a/Documentation/git-rev-list.txt
+++ b/Documentation/git-rev-list.txt
@@ -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 ]
@@ -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".
@@ -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).
 
-- 
1.5.3.rc1.4.gaf83


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Support output ISO 8601 format dates, Robin Rosenberg, (Fri Jul 13, 4:22 pm)
Re: [PATCH] Support output ISO 8601 format dates, Jan Hudec, (Sun Jul 15, 5:23 pm)
Re: [PATCH] Support output ISO 8601 format dates, Robin Rosenberg, (Sun Jul 15, 7:19 pm)
Re: [PATCH] Support output ISO 8601 format dates, Linus Torvalds, (Sun Jul 15, 7:57 pm)
Re: [PATCH] Support output ISO 8601 format dates, Junio C Hamano, (Sun Jul 15, 6:14 pm)
Re: [PATCH] Support output ISO 8601 format dates, Junio C Hamano, (Fri Jul 13, 6:11 pm)
[PATCH] Support output ISO 8601 format dates, Robin Rosenberg, (Fri Jul 13, 7:00 pm)
[PATCH] Document new --date=<format>, Junio C Hamano, (Sat Jul 14, 2:49 am)
Re: [PATCH 2/2] Wire new date formats to --date=&lt;format&g..., Jan-Benedict Glaw, (Sat Jul 14, 2:44 am)
speck-geostationary