aboutsummaryrefslogtreecommitdiff
path: root/.githooks/post-commit
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-x.githooks/post-commit9
1 files changed, 9 insertions, 0 deletions
diff --git a/.githooks/post-commit b/.githooks/post-commit
new file mode 100755
index 0000000..5752673
--- /dev/null
+++ b/.githooks/post-commit
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ $(git diff -G PASS -i HEAD~1..HEAD | wc -l) != 0 ]; then
+ echo "#######################################################"
+ echo "# You committed something containing the string PASS. #"
+ echo "# Please make sure this is safe before pushing. #"
+ echo "#######################################################"
+ git diff -G PASS -i HEAD~1..HEAD
+fi