projects
/
web.mtrack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb57dd9
)
inc/CommitCheck/BlankLines.php
author
Alan Knowles
<alan@akbkhome.com>
Thu, 27 Jan 2011 06:55:24 +0000
(14:55 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 27 Jan 2011 06:55:24 +0000
(14:55 +0800)
inc/CommitCheck/BlankLines.php
patch
|
blob
|
history
diff --git
a/inc/CommitCheck/BlankLines.php
b/inc/CommitCheck/BlankLines.php
index
232efe5
..
2c5fff2
100644
(file)
--- a/
inc/CommitCheck/BlankLines.php
+++ b/
inc/CommitCheck/BlankLines.php
@@
-16,6
+16,12
@@
class MTrackCommitCheck_BlankLines implements IMTrackCommitListener
$lines = explode("\n",$contents);
$seq = 0;
$total = 0;
+
+ // probably a CRLF fix....
+ if (count($lines) > 100) {
+ return;
+ }
+
foreach($lines as $l) {
$ll = trim($l);
if ($l != '+') {