diff options
author | Junio C Hamano <junio@kernel.org> | 2010-01-08 07:39:46 +0000 |
---|---|---|
committer | Junio C Hamano <junio@kernel.org> | 2010-01-08 07:39:46 +0000 |
commit | ae05feeb712a3d1be55164218489ebebef0f72b2 (patch) | |
tree | ea5bb7d89fc8f7102528d93577bdddaa516fb744 /git-commit.html | |
parent | 6d325dff7434895753dcad82809783644dec75f6 (diff) | |
download | git-htmldocs-ae05feeb712a3d1be55164218489ebebef0f72b2.tar.gz |
Autogenerated HTML docs for v1.6.6-102-gd6f8
Diffstat (limited to 'git-commit.html')
-rw-r--r-- | git-commit.html | 59 |
1 files changed, 57 insertions, 2 deletions
diff --git a/git-commit.html b/git-commit.html index 4cafa01da..63ea42a49 100644 --- a/git-commit.html +++ b/git-commit.html @@ -324,7 +324,7 @@ git-commit(1) Manual Page <div class="content"><em>git commit</em> [-a | --interactive] [-s] [-v] [-u<mode>] [--amend] [--dry-run]
[(-c | -C) <commit>] [-F <file> | -m <msg>] [--reset-author]
[--allow-empty] [--no-verify] [-e] [--author=<author>]
- [--cleanup=<mode>] [--] [[-i | -o ]<file>…]</div></div>
+ [--date=<date>] [--cleanup=<mode>] [--] [[-i | -o ]<file>…]</div></div>
</div>
<h2 id="_description">DESCRIPTION</h2>
<div class="sectionbody">
@@ -480,6 +480,14 @@ that, you can recover from it with <em>git-reset</em>.</p></div> </p>
</dd>
<dt>
+--date=<date>
+</dt>
+<dd>
+<p>
+ Override the author date used in the commit.
+</p>
+</dd>
+<dt>
-m <msg>
</dt>
<dt>
@@ -719,6 +727,53 @@ specified.</p></div> </dd>
</dl></div>
</div>
+<h2 id="_date_formats">DATE FORMATS</h2>
+<div class="sectionbody">
+<div class="para"><p>The GIT_AUTHOR_DATE, GIT_COMMITTER_DATE environment variables
+and the <tt>--date</tt> option
+support the following date formats:</p></div>
+<div class="vlist"><dl>
+<dt>
+Git internal format
+</dt>
+<dd>
+<p>
+ It is <tt><unix timestamp> <timezone offset></tt>, where <tt><unix
+ timestamp></tt> is the number of seconds since the UNIX epoch.
+ <tt><timezone offset></tt> is a positive or negative offset from UTC.
+ For example CET (which is 2 hours ahead UTC) is <tt>+0200</tt>.
+</p>
+</dd>
+<dt>
+RFC 2822
+</dt>
+<dd>
+<p>
+ The standard email format as described by RFC 2822, for example
+ <tt>Thu, 07 Apr 2005 22:13:13 +0200</tt>.
+</p>
+</dd>
+<dt>
+ISO 8601
+</dt>
+<dd>
+<p>
+ Time and date specified by the ISO 8601 standard, for example
+ <tt>2005-04-07T22:13:13</tt>. The parser accepts a space instead of the
+ <tt>T</tt> character as well.
+</p>
+<div class="admonitionblock">
+<table><tr>
+<td class="icon">
+<div class="title">Note</div>
+</td>
+<td class="content">In addition, the date part is accepted in the following formats:
+<tt>YYYY.MM.DD</tt>, <tt>MM/DD/YYYY</tt> and <tt>DD.MM.YYYY</tt>.</td>
+</tr></table>
+</div>
+</dd>
+</dl></div>
+</div>
<h2 id="_examples">EXAMPLES</h2>
<div class="sectionbody">
<div class="para"><p>When recording your own work, the contents of modified files in
@@ -916,7 +971,7 @@ Junio C Hamano <gitster@pobox.com></p></div> </div>
<div id="footer">
<div id="footer-text">
-Last updated 2009-12-28 09:33:36 UTC
+Last updated 2010-01-08 07:39:28 UTC
</div>
</div>
</body>
|