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\" | awk '{if (NR==1) print}'`" &&
12 touch --date="$commit_date" `git ls-files --cached`