diff options
author | dakkar <dakkar@thenautilus.net> | 2014-03-19 11:16:23 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2014-03-19 11:16:23 +0000 |
commit | 408be533f4d4b3947524e522750db3b4b96271ac (patch) | |
tree | 9400588fc2aae9894abf9f481df5603df765ccfe /fixdates.sh | |
parent | fix an anchor (diff) | |
download | thenautilus-408be533f4d4b3947524e522750db3b4b96271ac.tar.gz thenautilus-408be533f4d4b3947524e522750db3b4b96271ac.tar.bz2 thenautilus-408be533f4d4b3947524e522750db3b4b96271ac.zip |
generalise fixdates
Diffstat (limited to 'fixdates.sh')
-rwxr-xr-x | fixdates.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fixdates.sh b/fixdates.sh index fc7f32a..b71a112 100755 --- a/fixdates.sh +++ b/fixdates.sh @@ -1,7 +1,7 @@ #!/bin/bash thisdir="$(cd "$(dirname "$0")";pwd)" -cd "$thisdir" +cd "${1:-$thisdir}" git ls-files -z | \ while read -d $'\0' filename; do date="$(git log -n 1 --pretty='format:%ct' -- "$filename")" |