Skip to content

Commit 4b7b3b4

Browse files
committed
committable: LIMIT constant, limit bumped to 300
Note that it does not run anything in parallel, so it is a bit slow.
1 parent 40fb215 commit 4b7b3b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

committable.pl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ package Committable;
2626

2727
use Cwd qw(cwd abs_path);
2828

29+
use constant LIMIT => 300;
30+
2931
my $name = 'committable';
3032

3133
sub process_message {
@@ -54,7 +56,7 @@ sub process_message {
5456

5557
@commits = split("\n", $result);
5658
my $num_commits = scalar @commits;
57-
return "Too many commits ($num_commits) in range, you're only allowed 10" if ($num_commits > 10);
59+
return "Too many commits ($num_commits) in range, you're only allowed 10" if ($num_commits > LIMIT);
5860
} else {
5961
@commits = $config;
6062
}

0 commit comments

Comments
 (0)