diff options
author | Robin Jarry <robin@jarry.cc> | 2024-01-09 00:34:58 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-01-17 11:52:51 +0100 |
commit | 4239f0d80204a2d1f7a2475adfd62b39cd86d075 (patch) | |
tree | 3a67e992dbf77fd8692c565558f25114551d3710 /GNUmakefile | |
parent | ec0f4a50cf777895ff970fff2900265c8357c2bc (diff) | |
download | aerc-4239f0d80204a2d1f7a2475adfd62b39cd86d075.tar.gz |
contrib: add commit-msg git hook
Add a script that deals with the proper formatting and ordering of git
trailers. Install it as commit-msg git hook so that everyone can benefit
from it.
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Bence Ferdinandy <bence@ferdinandy.com>
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile index cd86c096..274f2c6d 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -114,6 +114,8 @@ gitconfig: git config notes.rewriteRef refs/notes/commits git config notes.rewriteMode concatenate @mkdir -p .git/hooks + @rm -f .git/hooks/commit-msg* + ln -s ../../contrib/commit-msg .git/hooks/commit-msg @rm -f .git/hooks/sendemail-validate* @if grep -q GIT_SENDEMAIL_FILE_COUNTER `git --exec-path`/git-send-email 2>/dev/null; then \ set -xe; \ |