githooks

Personal git hooks
git clone git://pollux.codes/git/githooks.git
Log | Files | Refs | README

commit 7c1c9a948a829ff4128ff1f251251eb040f74308
parent 5229e424abcd521cf1146d5171ce80f77986938e
Author: Pollux <pollux@pollux.codes>
Date:   Sun,  9 Feb 2025 23:01:52 -0600

style(shared): line length

Signed-off-by: Pollux <pollux@pollux.codes>

Diffstat:
Mshared/commit-msg | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/shared/commit-msg b/shared/commit-msg @@ -2,7 +2,9 @@ # Check commit header REGEX="^(feat|fix|docs|chore|style|wip)(\([a-z \-]+\))?!?: .{1,50}$" -cat "$1" | head -n1 | grep -E "$REGEX" > /dev/null || (echo "Improper commit header" && exit 1) +cat "$1" | head -n1 | grep -E "$REGEX" > /dev/null \ + || (echo "Improper commit header" && exit 1) # Check for signed-off-by footer -cat "$1" | grep "^[^#]" | tail -n1 | grep -E "^Signed-off-by: " > /dev/null || (echo "No signed-off-by footer" && exit 1) +cat "$1" | grep "^[^#]" | tail -n1 | grep -E "^Signed-off-by: " > /dev/null \ + || (echo "No signed-off-by footer" && exit 1)