hooks:commit-msg: Visually separate error message
The warning is quickly overread when in the same paragraph as git's normal output.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user