summaryrefslogtreecommitdiffstats
path: root/git-commit.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@kernel.org>2010-01-08 07:39:46 +0000
committerJunio C Hamano <junio@kernel.org>2010-01-08 07:39:46 +0000
commitae05feeb712a3d1be55164218489ebebef0f72b2 (patch)
treeea5bb7d89fc8f7102528d93577bdddaa516fb744 /git-commit.html
parent6d325dff7434895753dcad82809783644dec75f6 (diff)
downloadgit-htmldocs-ae05feeb712a3d1be55164218489ebebef0f72b2.tar.gz
Autogenerated HTML docs for v1.6.6-102-gd6f8
Diffstat (limited to 'git-commit.html')
-rw-r--r--git-commit.html59
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&lt;mode&gt;] [--amend] [--dry-run]
[(-c | -C) &lt;commit&gt;] [-F &lt;file&gt; | -m &lt;msg&gt;] [--reset-author]
[--allow-empty] [--no-verify] [-e] [--author=&lt;author&gt;]
- [--cleanup=&lt;mode&gt;] [--] [[-i | -o ]&lt;file&gt;&#8230;]</div></div>
+ [--date=&lt;date&gt;] [--cleanup=&lt;mode&gt;] [--] [[-i | -o ]&lt;file&gt;&#8230;]</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=&lt;date&gt;
+</dt>
+<dd>
+<p>
+ Override the author date used in the commit.
+</p>
+</dd>
+<dt>
-m &lt;msg&gt;
</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>&lt;unix timestamp&gt; &lt;timezone offset&gt;</tt>, where <tt>&lt;unix
+ timestamp&gt;</tt> is the number of seconds since the UNIX epoch.
+ <tt>&lt;timezone offset&gt;</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 &lt;gitster@pobox.com&gt;</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>