diff options
author | Federico Ceratto <federico.ceratto@gmail.com> | 2016-03-30 21:40:42 +0000 |
---|---|---|
committer | Federico Ceratto <federico.ceratto@gmail.com> | 2016-03-30 21:40:42 +0000 |
commit | 9ce153ce7167c11adba8ac225edc7a707e97c6eb (patch) | |
tree | 9f6e849cce2dcc7e5b4e9e6252c843dc2d0787a2 /hooks | |
download | netdata-9ce153ce7167c11adba8ac225edc7a707e97c6eb.tar.xz netdata-9ce153ce7167c11adba8ac225edc7a707e97c6eb.zip |
Imported Upstream version 1.0.0upstream/1.0.0
Diffstat (limited to 'hooks')
-rwxr-xr-x | hooks/post-commit | 5 | ||||
-rwxr-xr-x | hooks/pre-commit | 5 | ||||
-rwxr-xr-x | hooks/prepare-commit-msg | 2 |
3 files changed, 12 insertions, 0 deletions
diff --git a/hooks/post-commit b/hooks/post-commit new file mode 100755 index 00000000..a1d41c71 --- /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 00000000..fb2209f0 --- /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 00000000..530f9576 --- /dev/null +++ b/hooks/prepare-commit-msg @@ -0,0 +1,2 @@ +#!/bin/sh +test -x ./packaging/release-msg && exec ./packaging/release-msg "$@" |