diff options
author | paulfantom <pawel@krupa.net.pl> | 2018-09-08 14:51:46 +0200 |
---|---|---|
committer | paulfantom <pawel@krupa.net.pl> | 2018-09-08 14:51:46 +0200 |
commit | e2d27e3075f400508149881a964c70a21136f4ff (patch) | |
tree | 6afbda7f8490f7054ba0ec1004ad37a5d989b72c /.githooks | |
parent | cd3cef55d6e0081af39856e71e42164beebf8eb5 (diff) |
make clearer what hooks are
Diffstat (limited to '.githooks')
-rwxr-xr-x | .githooks/post-commit | 5 | ||||
-rwxr-xr-x | .githooks/pre-commit | 5 | ||||
-rwxr-xr-x | .githooks/prepare-commit-msg | 2 |
3 files changed, 12 insertions, 0 deletions
diff --git a/.githooks/post-commit b/.githooks/post-commit new file mode 100755 index 0000000000..a1d41c7127 --- /dev/null +++ b/.githooks/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/.githooks/pre-commit b/.githooks/pre-commit new file mode 100755 index 0000000000..fb2209f085 --- /dev/null +++ b/.githooks/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/.githooks/prepare-commit-msg b/.githooks/prepare-commit-msg new file mode 100755 index 0000000000..530f9576d5 --- /dev/null +++ b/.githooks/prepare-commit-msg @@ -0,0 +1,2 @@ +#!/bin/sh +test -x ./packaging/release-msg && exec ./packaging/release-msg "$@" |