summaryrefslogtreecommitdiffstats
path: root/hooks/pre-commit
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xhooks/pre-commit5
1 files changed, 5 insertions, 0 deletions
diff --git a/hooks/pre-commit b/hooks/pre-commit
new file mode 100755
index 000000000..fb2209f08
--- /dev/null
+++ b/hooks/pre-commit
@@ -0,0 +1,5 @@
+#!/bin/sh
+if [ -x ./packaging/check-files ]
+then
+ exec git diff --cached | ./packaging/check-files -
+fi