diff options
author | Michael Allen <michael@michaelallen.io> | 2015-10-16 13:08:05 +0100 |
---|---|---|
committer | Michael Allen <michael@michaelallen.io> | 2015-10-16 13:11:03 +0100 |
commit | 532d76036d5d5cd9161d90a735ed0edd1f9c869d (patch) | |
tree | d3669c96b3bd2dce39756f5443f9254840927c91 /shunit | |
parent | 3aec9621ca391d8ea61df4daddb407a7acf1ecf6 (diff) | |
download | git-sonar-532d76036d5d5cd9161d90a735ed0edd1f9c869d.tar.gz git-sonar-532d76036d5d5cd9161d90a735ed0edd1f9c869d.zip |
%Z returns the modified date, %Y returns the changed date
The OSX version of stat uses %m to return the 'modified' date since
epoch. The GNU version of stat doesn't have the %m format code.
%Z which was being used in @hallzy's fix returns the 'changed' date
since epoch, which only changes when you modify the metadata on a file.
This meant that when we `touch $dot_git/.lastupdatetime` the 'changed'
date doesn't change.
I've switched to the %Y flag which returns the 'modified' time. This is
the time that is changed when `touch` modifies the file.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions