<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/test-chmtime.c, branch v1.6.4</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.6.4</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.6.4'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2009-06-01T07:10:08Z</updated>
<entry>
<title>test-chmtime: work around Windows limitation</title>
<updated>2009-06-01T07:10:08Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2009-05-31T16:15:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d9b26333854ce72a05cd077638c41a332f79c779'/>
<id>urn:sha1:d9b26333854ce72a05cd077638c41a332f79c779</id>
<content type='text'>
Windows has problems changing the mtime when the file is write protected,
even by the owner of said file.

Add a Windows-only workaround to change the mode if necessary before
trying to change the mtime.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Steffen Prohaska &lt;prohaska@zib.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Add --verbose|-v to test-chmtime</title>
<updated>2008-10-31T07:19:52Z</updated>
<author>
<name>Alex Riesen</name>
<email>raa.lkml@gmail.com</email>
</author>
<published>2008-10-30T09:00:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0ea9ca07aa76bef80c066b1a70366cf90caa703d'/>
<id>urn:sha1:0ea9ca07aa76bef80c066b1a70366cf90caa703d</id>
<content type='text'>
This allows us replace perl when getting the mtime of a file because
of time zone conversions, though at the moment only one platform which
does this has been identified: Cygwin when used with ActiveState Perl
(as usual).

The output format is:

    &lt;mtime1&gt; TAB &lt;filename1&gt; &lt;LF&gt;
    &lt;mtime2&gt; TAB &lt;filename2&gt; &lt;LF&gt;
    ...

which, if only mtime is needed can be parsed with cut(1):

    test-chmtime -v +0 filename1 | cut -f 1

Also, the change adds a description of programs features, with examples.

Signed-off-by: Alex Riesen &lt;ariesen@harmanbecker.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Add test-chmtime: a utility to change mtime on files</title>
<updated>2007-02-25T19:09:56Z</updated>
<author>
<name>Eric Wong</name>
<email>normalperson@yhbt.net</email>
</author>
<published>2007-02-25T02:18:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=17e48368751ae8df7ed0332ae8ef900ce983fce6'/>
<id>urn:sha1:17e48368751ae8df7ed0332ae8ef900ce983fce6</id>
<content type='text'>
This is intended to be a portable replacement for our usage
of date(1), touch(1), and Perl one-liners in tests.

Usage: test-chtime (+|=|-|=+|=-)&lt;seconds&gt; &lt;file&gt;..."

  '+' increments the mtime on the files by &lt;seconds&gt;
  '-' decrements the mtime on the files by &lt;seconds&gt;
  '=' sets the mtime on the file to exactly &lt;seconds&gt;
  '=+' and '=-' sets the mtime on the file to &lt;seconds&gt; after or
      before the current time.

Signed-off-by: Eric Wong &lt;normalperson@yhbt.net&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
</feed>
