Mercurial > hg-stable
changeset 25643:6f6c97d29a1e
check-commit: catch both patterns of double empty lines
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 21 Jun 2015 15:18:49 +0900 |
parents | 5265932aad83 |
children | c99f9715cc9a |
files | contrib/check-commit |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/check-commit Sat Jun 20 04:13:25 2015 -0700 +++ b/contrib/check-commit Sun Jun 21 15:18:49 2015 +0900 @@ -29,6 +29,7 @@ (r"^# .*\n.*\.\s+$", "don't add trailing period on summary line"), (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"), ]