3 # post-checkout hook that change timestamps on files to that one of the commit
4 # if branch was changed
10 if [ "$new_branch" = 1 ]; then
11 commit_date="`git show --format='%cD' \"$new_HEAD\" | awk '{if (NR==1) print}'`" &&
12 find . \( -name .git -type d -prune \) -o -exec touch --date="$commit_date" '{}' \+