From 09a7497432b5f101ccf878050a09b3e10d4710c5 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Wed, 16 Oct 2024 14:36:41 +0200 Subject: [PATCH] hooks:commit-msg: Visually separate error message The warning is quickly overread when in the same paragraph as git's normal output. --- meta/git/hooks/commit-msg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/git/hooks/commit-msg b/meta/git/hooks/commit-msg index d60405b..d9beda3 100755 --- a/meta/git/hooks/commit-msg +++ b/meta/git/hooks/commit-msg @@ -41,7 +41,7 @@ body="$( if [[ ${#subject} -gt 60 ]]; then die "Subject too long. (<= 60)" elif [[ ${#subject} -gt 50 ]]; then - >&2 printf "%s: Subject exceeds recommendation of 50 characters!\n" "$0" + >&2 printf "%s: Subject exceeds recommendation of 50 characters!\n\n" "$0" fi # The subject line has to match "${pats[@]}", but to be more verbose different