]> git.phdru.name Git - git-scripts.git/blobdiff - hooks/post-checkout/touch-all
Rename touch-all -> set-commit-date
[git-scripts.git] / hooks / post-checkout / touch-all
diff --git a/hooks/post-checkout/touch-all b/hooks/post-checkout/touch-all
deleted file mode 100755 (executable)
index 2f5e80c..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-# post-checkout hook that changes timestamps on files to that one of the commit
-# if branch was changed
-
-prev_HEAD="$1"
-new_HEAD="$2"
-new_branch="$3"
-
-if [ "$new_branch" = 1 ]; then
-   commit_date="`git show --format='%cD' | head -1`" &&
-   find . \( -name .git -type d -prune \) -o -exec touch --date="$commit_date" '{}' \+
-fi
-
-exit 0