3 # post-checkout hook that changes 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\" | head -1`" &&
12 find . \( -name .git -type d -prune \) -o -exec touch --date="$commit_date" '{}' \+