<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/git.git/date.c, branch v1.5.6.4</title>
<subtitle>Git
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.5.6.4</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.5.6.4'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/'/>
<updated>2008-06-17T23:40:09Z</updated>
<entry>
<title>Fix approxidate("never") to always return 0</title>
<updated>2008-06-17T23:40:09Z</updated>
<author>
<name>Olivier Marin</name>
<email>dkr@freesurf.fr</email>
</author>
<published>2008-06-17T16:34:57Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=8c6b57860d9be5f346c9589a08c9e7c04eeaf99b'/>
<id>urn:sha1:8c6b57860d9be5f346c9589a08c9e7c04eeaf99b</id>
<content type='text'>
Commit af66366a9feb0194ed04b1f538998021ece268a8 introduced the keyword
"never" to be used with approxidate() but defined it with a fixed date
without taking care of timezone. As a result approxidate() will return
a timestamp in the future with a negative timezone.

With this patch, approxidate("never") always return 0 whatever your
timezone is.

Signed-off-by: Olivier Marin &lt;dkr@freesurf.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>timezone_names[]: fixed the tz offset for New Zealand.</title>
<updated>2008-02-26T05:56:10Z</updated>
<author>
<name>Steven Drake</name>
<email>sdrake@ihug.co.nz</email>
</author>
<published>2008-02-26T00:45:53Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=695ed47228021f7408f58e6174168ea583c448d0'/>
<id>urn:sha1:695ed47228021f7408f58e6174168ea583c448d0</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>parse_date_format(): convert a format name to an enum date_mode</title>
<updated>2007-09-30T03:31:59Z</updated>
<author>
<name>Andy Parkins</name>
<email>andyparkins@gmail.com</email>
</author>
<published>2007-09-28T14:17:31Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=856665f827c31ace3f19e672f8911f7f15f2a0e2'/>
<id>urn:sha1:856665f827c31ace3f19e672f8911f7f15f2a0e2</id>
<content type='text'>
Factor out the code to parse --date=&lt;format&gt; parameter to revision
walkers into a separate function, parse_date_format().  This function
is passed a string and converts it to an enum date_format:

 - "relative"         =&gt; DATE_RELATIVE
 - "iso8601" or "iso" =&gt; DATE_ISO8601
 - "rfc2822"          =&gt; DATE_RFC2822
 - "short"            =&gt; DATE_SHORT
 - "local"            =&gt; DATE_LOCAL
 - "default"          =&gt; DATE_NORMAL

In the event that none of these strings is found, the function die()s.

Signed-off-by: Andy Parkins &lt;andyparkins@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Teach approxidate() to understand "never"</title>
<updated>2007-07-25T00:28:10Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2007-07-24T18:18:34Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=af66366a9feb0194ed04b1f538998021ece268a8'/>
<id>urn:sha1:af66366a9feb0194ed04b1f538998021ece268a8</id>
<content type='text'>
If you want to keep the reflogs around for a really long time, you should be
able to say so:

	$ git config gc.reflogExpire never

Now it works, too.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Make show_rfc2822_date() just another date output format.</title>
<updated>2007-07-14T06:14:52Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2007-07-14T06:14:52Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=73013afd14c14ba178ab2aaa458168ec1d5506de'/>
<id>urn:sha1:73013afd14c14ba178ab2aaa458168ec1d5506de</id>
<content type='text'>
These days, show_date() takes a date_mode parameter to specify
the output format, and a separate specialized function for dates
in E-mails does not make much sense anymore.

This retires show_rfc2822_date() function and make it just
another date output format.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Support output ISO 8601 format dates</title>
<updated>2007-07-14T05:47:49Z</updated>
<author>
<name>Robin Rosenberg</name>
<email>robin.rosenberg@dewire.com</email>
</author>
<published>2007-07-13T23:00:42Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=ee8f838e0346751b21250f8d107049829b855a98'/>
<id>urn:sha1:ee8f838e0346751b21250f8d107049829b855a98</id>
<content type='text'>
Support output of full ISO 8601 style dates in e.g. git log
and other places that use interpolation for formatting.

Signed-off-by: Robin Rosenberg &lt;robin.rosenberg@dewire.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>War on whitespace</title>
<updated>2007-06-07T07:04:01Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2007-06-07T07:04:01Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=a6080a0a44d5ead84db3dabbbc80e82df838533d'/>
<id>urn:sha1:a6080a0a44d5ead84db3dabbbc80e82df838533d</id>
<content type='text'>
This uses "git-apply --whitespace=strip" to fix whitespace errors that have
crept in to our source files over time.  There are a few files that need
to have trailing whitespaces (most notably, test vectors).  The results
still passes the test, and build result in Documentation/ area is unchanged.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Accept dates before 2000/01/01 when specified as seconds since the epoch</title>
<updated>2007-06-06T22:20:12Z</updated>
<author>
<name>Johannes Sixt</name>
<email>johannes.sixt@telecom.at</email>
</author>
<published>2007-06-06T08:11:55Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=a1a5a6347b4ac1005c5d9c2b636e906bf6c8ec12'/>
<id>urn:sha1:a1a5a6347b4ac1005c5d9c2b636e906bf6c8ec12</id>
<content type='text'>
Tests with git-filter-branch on a repository that was converted from
CVS and that has commits reaching back to 1999 revealed that it is
necessary to parse dates before 2000/01/01 when they are specified
as seconds since 1970/01/01. There is now still a limit, 100000000,
which is 1973/03/03 09:46:40 UTC, in order to allow that dates are
represented as 8 digits.

Signed-off-by: Johannes Sixt &lt;johannes.sixt@telecom.at&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Add --date={local,relative,default}</title>
<updated>2007-04-26T04:39:43Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-04-25T06:36:22Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=a7b02ccf9a682fa0c2b28df6ca20f9199cdca4de'/>
<id>urn:sha1:a7b02ccf9a682fa0c2b28df6ca20f9199cdca4de</id>
<content type='text'>
This adds --date={local,relative,default} option to log family of commands,
to allow displaying timestamps in user's local timezone, relative time, or
the default format.

Existing --relative-date option is a synonym of --date=relative; we could
probably deprecate it in the long run.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>show_date(): rename the "relative" parameter to "mode"</title>
<updated>2007-02-28T01:29:37Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2007-02-27T15:21:04Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=f8493ec09bcdbd616084dcfa6f5b8ca0bbb68acf'/>
<id>urn:sha1:f8493ec09bcdbd616084dcfa6f5b8ca0bbb68acf</id>
<content type='text'>
Now, show_date() can print three different kinds of dates: normal,
relative and short (%Y-%m-%s) dates.

To achieve this, the "int relative" was changed to "enum date_mode
mode", which has three states: DATE_NORMAL, DATE_RELATIVE and
DATE_SHORT.

Since existing users of show_date() only call it with relative_date
being either 0 or 1, and DATE_NORMAL and DATE_RELATIVE having these
values, no behaviour is changed.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
</feed>
