projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3d213a1
)
scripts: commit-msg: tweak 72-column test to avoid a false-positive
author
Jim Meyering
<meyering@redhat.com>
Wed, 23 Nov 2011 08:02:51 +0000
(09:02 +0100)
committer
Jim Meyering
<meyering@redhat.com>
Wed, 23 Nov 2011 08:05:08 +0000
(09:05 +0100)
* scripts/git-hooks/commit-msg: Don't warn about a line that is
longer than 72 if it is a comment. Git-generated comments would
occasionally trigger this.
scripts/git-hooks/commit-msg
patch
|
blob
|
history
diff --git
a/scripts/git-hooks/commit-msg
b/scripts/git-hooks/commit-msg
index
7d0891e
..
22f595f
100755
(executable)
--- a/
scripts/git-hooks/commit-msg
+++ b/
scripts/git-hooks/commit-msg
@@
-101,7
+101,7
@@
sub check_msg($$)
# Limit line length to allow for the ChangeLog's leading TAB.
foreach my $line (@line)
{
# Limit line length to allow for the ChangeLog's leading TAB.
foreach my $line (@line)
{
- 72 < length $line
+ 72 < length $line
&& $line =~ /^[^#]/
and return 'line longer than 72';
}
and return 'line longer than 72';
}