From 408be533f4d4b3947524e522750db3b4b96271ac Mon Sep 17 00:00:00 2001 From: dakkar Date: Wed, 19 Mar 2014 11:16:23 +0000 Subject: generalise fixdates --- fixdates.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fixdates.sh') 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")" -- cgit v1.2.3