From 9ce153ce7167c11adba8ac225edc7a707e97c6eb Mon Sep 17 00:00:00 2001 From: Federico Ceratto Date: Wed, 30 Mar 2016 22:40:42 +0100 Subject: Imported Upstream version 1.0.0 --- hooks/post-commit | 5 +++++ hooks/pre-commit | 5 +++++ hooks/prepare-commit-msg | 2 ++ 3 files changed, 12 insertions(+) create mode 100755 hooks/post-commit create mode 100755 hooks/pre-commit create mode 100755 hooks/prepare-commit-msg (limited to 'hooks') 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 "$@" -- cgit v1.2.3