]> arthur.barton.de Git - netdata.git/blobdiff - hooks/pre-commit
Add hooks and packaging scripts
[netdata.git] / hooks / pre-commit
diff --git a/hooks/pre-commit b/hooks/pre-commit
new file mode 100755 (executable)
index 0000000..fb2209f
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+if [ -x ./packaging/check-files ]
+then
+  exec git diff --cached | ./packaging/check-files -
+fi