We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c42e3c commit cabf3abCopy full SHA for cabf3ab
githooks/pre-commit
@@ -0,0 +1,9 @@
1
+#!/bin/sh
2
+
3
+# This can be used in a comment as a reminder to self.
4
+git diff-index --cached -S "DONOTCOMMIT" HEAD --patch --exit-code ":!githooks" \
5
+ || { echo; echo "Have you forgotten about the “DONOTCOMMIT”?"; exit 1; }
6
7
+# Eldev functions can be used during development, but must not be committed.
8
+git diff-index --cached -S "eldev-" HEAD --patch --exit-code ":!githooks" ":!Eldev" \
9
+ || { echo; echo "Don't commit code relying on Eldev!"; exit 1; }
0 commit comments