X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=hooks%2Fpost-checkout%2Fset-last-commit-date;fp=hooks%2Fpost-checkout%2Ftouch;h=a39bca468b5fc4e250cd2c20e541971d6447b3bf;hb=b5a65bd2ca9eb6887fbb3f94ae5c6f262e7d38dc;hp=2c5e625330c5d18b0ce0a50dccb408df4cddc640;hpb=839f71abf237d12e2521ed23c7dfdb0f66f50a3f;p=git-scripts.git diff --git a/hooks/post-checkout/touch b/hooks/post-checkout/set-last-commit-date similarity index 63% rename from hooks/post-checkout/touch rename to hooks/post-checkout/set-last-commit-date index 2c5e625..a39bca4 100755 --- a/hooks/post-checkout/touch +++ b/hooks/post-checkout/set-last-commit-date @@ -1,7 +1,7 @@ #!/bin/sh -# post-checkout hook that changes timestamps on files to that one of the commit -# if branch was changed +# post-checkout hook that changes timestamps on known files +# to that one of the last commit (head) if branch was changed prev_HEAD="$1" new_HEAD="$2"