summaryrefslogtreecommitdiffstats
path: root/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/post-commit5
-rwxr-xr-xhooks/pre-commit5
-rwxr-xr-xhooks/prepare-commit-msg2
3 files changed, 12 insertions, 0 deletions
diff --git a/hooks/post-commit b/hooks/post-commit
new file mode 100755
index 000000000..a1d41c712
--- /dev/null
+++ b/hooks/post-commit
@@ -0,0 +1,5 @@
+#!/bin/sh
+if [ -x ./packaging/update-tags ]
+then
+ exec git diff HEAD^ | ./packaging/update-tags -
+fi
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
diff --git a/hooks/prepare-commit-msg b/hooks/prepare-commit-msg
new file mode 100755
index 000000000..530f9576d
--- /dev/null
+++ b/hooks/prepare-commit-msg
@@ -0,0 +1,2 @@
+#!/bin/sh
+test -x ./packaging/release-msg && exec ./packaging/release-msg "$@"