summaryrefslogtreecommitdiff
path: root/fixdates.sh
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2014-03-19 11:16:23 +0000
committerdakkar <dakkar@thenautilus.net>2014-03-19 11:16:23 +0000
commit408be533f4d4b3947524e522750db3b4b96271ac (patch)
tree9400588fc2aae9894abf9f481df5603df765ccfe /fixdates.sh
parentfix an anchor (diff)
downloadthenautilus-408be533f4d4b3947524e522750db3b4b96271ac.tar.gz
thenautilus-408be533f4d4b3947524e522750db3b4b96271ac.tar.bz2
thenautilus-408be533f4d4b3947524e522750db3b4b96271ac.zip
generalise fixdates
Diffstat (limited to 'fixdates.sh')
-rwxr-xr-xfixdates.sh2
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")"