Patchwork [1,of,5,v2] check-commit: fix summary length regexp

login
register
mail settings
Submitter timeless@mozdev.org
Date Jan. 12, 2016, 8:56 a.m.
Message ID <c686621f7ac9981d33d2.1452588993@waste.org>
Download mbox | patch
Permalink /patch/12688/
State Accepted
Commit b2479d305c1049a7a9ac01a78074fe7c38bde085
Headers show

Comments

timeless@mozdev.org - Jan. 12, 2016, 8:56 a.m.
# HG changeset patch
# User timeless <timeless@mozdev.org>
# Date 1452139120 0
#      Thu Jan 07 03:58:40 2016 +0000
# Node ID c686621f7ac9981d33d2a7f4e6fd20a7678790f3
# Parent  4571c0b383378f5eec5189e3a39c672a169ce566
check-commit: fix summary length regexp

Patch

diff --git a/contrib/check-commit b/contrib/check-commit
--- a/contrib/check-commit
+++ b/contrib/check-commit
@@ -29,7 +29,7 @@ 
     (r"^# [^\n]*\n\S*[^A-Za-z0-9-]\S*: ",
      "summary keyword should be most user-relevant one-word command or topic"),
     (r"^# .*\n.*\.\s+$", "don't add trailing period on summary line"),
-    (r"^# .*\n[^#].{77,}", "summary line too long (limit is 78)"),
+    (r"^# .*\n[^#].{78,}", "summary line too long (limit is 78)"),
     (r"^\+\n \n", "adds double empty line"),
     (r"^ \n\+\n", "adds double empty line"),
     (r"^\+[ \t]+def [a-z]+_[a-z]", "adds a function with foo_bar naming"),