Skip to content

Commit d37a1ed

Browse files
author
Junio C Hamano
committed
Fix fmt-merge-msg counting.
Signed-off-by: Junio C Hamano <[email protected]>
1 parent 551ce28 commit d37a1ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

git-fmt-merge-msg.perl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ sub current_branch {
5555
}
5656

5757
sub shortlog {
58-
my ($tip, $limit) = @_;
58+
my ($tip) = @_;
5959
my ($fh, @result);
60-
open $fh, '-|', ('git-log', "--max-count=$limit", '--topo-order',
60+
open $fh, '-|', ('git-log', '--topo-order',
6161
'--pretty=oneline', $tip, '^HEAD')
6262
or die "$!";
6363
while (<$fh>) {
@@ -160,7 +160,7 @@ sub shortlog {
160160

161161
for (@origin) {
162162
my ($sha1, $name) = @$_;
163-
my @log = shortlog($sha1, $limit + 1);
163+
my @log = shortlog($sha1);
164164
if ($limit + 1 <= @log) {
165165
print "\n* $name: (" . scalar(@log) . " commits)\n";
166166
}

0 commit comments

Comments
 (0)