changeset 25137:85fc79707cb2

check-commit: print limit when user has a too-long summary
author Augie Fackler <augie@google.com>
date Mon, 18 May 2015 11:36:33 -0400
parents 99d01d288c37
children 0d6b64fbb5ba
files contrib/check-commit
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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"),
 ]