>From 9ba2c1fc35590c41fba623f892af7dd9c75e5f5b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 25 Apr 2015 18:14:35 -0700 Subject: [PATCH] Encourage shorter commit message lines This helps keep generated ChangeLog lines less than 80 characters (Bug#20401). * build-aux/git-hooks/commit-msg: Limit lines to 72 characters. --- build-aux/git-hooks/commit-msg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-aux/git-hooks/commit-msg b/build-aux/git-hooks/commit-msg index 9661376..5e46d9f 100755 --- a/build-aux/git-hooks/commit-msg +++ b/build-aux/git-hooks/commit-msg @@ -110,8 +110,8 @@ exec $awk -v at_sign="$at_sign" -v cent_sign="$cent_sign" ' } } - 78 < length && $0 ~ space { - print "Line longer than 78 characters in commit message" + 72 < length && $0 ~ space { + print "Line longer than 72 characters in commit message" status = 1 } -- 2.1.0