author | Alex Riesen <raa.lkml@gmail.com> | |
Thu, 30 Oct 2008 09:00:29 +0000 (10:00 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 31 Oct 2008 07:19:52 +0000 (00:19 -0700) | ||
commit | 0ea9ca07aa76bef80c066b1a70366cf90caa703d | |
tree | 2a86683c78ce2040b0584cc559c3dc5d1d860c67 | tree | snapshot |
parent | 9b6f84d2c2ff84ac3ef2215b6ea8ee45b6d943cd | commit | diff |
Add --verbose|-v to test-chmtime
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:
<mtime1> TAB <filename1> <LF>
<mtime2> TAB <filename2> <LF>
...
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 <ariesen@harmanbecker.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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:
<mtime1> TAB <filename1> <LF>
<mtime2> TAB <filename2> <LF>
...
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 <ariesen@harmanbecker.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
test-chmtime.c | diff | blob | history |