blob: 2b239442e0a2a2e689922a9bae7883197e46ccf5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
thisdir="$(cd "$(dirname "$0")";pwd)" cd "$thisdir" git ls-files -z | \ while read -d $'\0' filename; do date="$(git-log -n 1 --pretty='format:%ct' -- "$filename")" if [[ -n "$date" ]]; then echo "updating <$filename> to date <$date>" touch -d @"$date" "$filename" fi done
|