aboutsummaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2024-01-09 00:34:58 +0100
committerRobin Jarry <robin@jarry.cc>2024-01-17 11:52:51 +0100
commit4239f0d80204a2d1f7a2475adfd62b39cd86d075 (patch)
tree3a67e992dbf77fd8692c565558f25114551d3710 /GNUmakefile
parentec0f4a50cf777895ff970fff2900265c8357c2bc (diff)
downloadaerc-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--GNUmakefile2
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; \