diff options
author | Justus Winter <[email protected]> | 2016-05-10 11:03:34 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-05-10 11:03:34 +0000 |
commit | f531608539b45f0bbd036f430943b390ec21aa65 (patch) | |
tree | 56cf3f4db0c38e668645668ebb3dec418bed77a5 /build-aux/git-hooks | |
parent | More GTK2 removal (diff) | |
parent | Allow cc to detect missing cases in a switch. (diff) | |
download | gpgme-f531608539b45f0bbd036f430943b390ec21aa65.tar.gz gpgme-f531608539b45f0bbd036f430943b390ec21aa65.zip |
Merge branch 'master' into justus/pyme3
Diffstat (limited to '')
-rwxr-xr-x | build-aux/git-hooks/commit-msg | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build-aux/git-hooks/commit-msg b/build-aux/git-hooks/commit-msg index 5a697c7a..3ca918b2 100755 --- a/build-aux/git-hooks/commit-msg +++ b/build-aux/git-hooks/commit-msg @@ -86,11 +86,17 @@ sub check_msg($$) 2 <= @line && length $line[1] and return 'second line must be empty'; + # See git-commit(1), this is the --cleanup=scissors option. Everything + # after and including this line gets ignored. + my $marker = '# ------------------------ >8 ------------------------'; + # Limit line length to allow for the ChangeLog's leading TAB. foreach my $line (@line) { 72 < length $line && $line =~ /^[^#]/ and return 'line longer than 72 characters'; + + last if $line eq $marker; } return ''; |