We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6d3f34 commit ab5dbceCopy full SHA for ab5dbce
1 file changed
.hooks/post-checkout
@@ -11,8 +11,12 @@ checkoutType=$3
11
[[ $checkoutType == 1 ]] && checkoutType='branch' ||
12
checkoutType='file' ;
13
14
-echo 'Checkout type: '$checkoutType
+echo 'Checkout type: '$checkoutType
15
+
16
echo ' prev HEAD: '`git name-rev --name-only $prevHEAD`
17
echo ' new HEAD: '`git name-rev --name-only $newHEAD`
18
19
+# this is a file checkout – do nothing
20
+if [ $checkoutType == 'file' ]; then exit; fi
21
22
make clean
0 commit comments