check-commit: print limit when user has a too-long summary
authorAugie Fackler <augie@google.com>
Mon, 18 May 2015 11:36:33 -0400
changeset 25137 85fc79707cb2
parent 25136 99d01d288c37
child 25138 0d6b64fbb5ba
check-commit: print limit when user has a too-long summary
contrib/check-commit
--- a/contrib/check-commit	Fri May 15 20:04:24 2015 +0800
+++ b/contrib/check-commit	Mon May 18 11:36:33 2015 -0400
@@ -27,7 +27,7 @@
     (r"^# .*\n[A-Z][a-z]\S+", "don't capitalize summary lines"),
     (r"^# .*\n[^\n]*: *[A-Z][a-z]\S+", "don't capitalize summary lines"),
     (r"^# .*\n.*\.\s+$", "don't add trailing period on summary line"),
-    (r"^# .*\n.{78,}", "summary line too long"),
+    (r"^# .*\n.{78,}", "summary line too long (limit is 78)"),
     (r"^\+\n \n", "adds double empty line"),
     (r"\+\s+def [a-z]+_[a-z]", "adds a function with foo_bar naming"),
 ]