Mercurial > hg
changeset 30061:8e805cf27caa
check-commit: allow underscore as commit topic
It's currently not possible to commit with a changeset topic
like 'bash_completion'. This change fixes that.
author | Mathias De Maré <mathias.de_mare@nokia.com> |
---|---|
date | Wed, 05 Oct 2016 15:28:34 +0200 |
parents | a145161debed |
children | 940c05b25b07 |
files | contrib/check-commit |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/check-commit Sat Oct 08 01:25:28 2016 -0700 +++ b/contrib/check-commit Wed Oct 05 15:28:34 2016 +0200 @@ -35,7 +35,7 @@ "summary line doesn't start with 'topic: '"), (afterheader + r"[A-Z][a-z]\S+", "don't capitalize summary lines"), (afterheader + r"[^\n]*: *[A-Z][a-z]\S+", "don't capitalize summary lines"), - (afterheader + r"\S*[^A-Za-z0-9-]\S*: ", + (afterheader + r"\S*[^A-Za-z0-9-_]\S*: ", "summary keyword should be most user-relevant one-word command or topic"), (afterheader + r".*\.\s*\n", "don't add trailing period on summary line"), (afterheader + r".{79,}", "summary line too long (limit is 78)"),