diff options
Diffstat (limited to 'git-fmt-merge-msg.perl')
-rwxr-xr-x | git-fmt-merge-msg.perl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git-fmt-merge-msg.perl b/git-fmt-merge-msg.perl index a77e94eb5a..c13af4884a 100755 --- a/git-fmt-merge-msg.perl +++ b/git-fmt-merge-msg.perl @@ -60,12 +60,12 @@ sub current_branch { } sub shortlog { - my ($tip, $limit) = @_; + my ($tip) = @_; my ($fh, @result); my $pid = open($fh, '-|'); die "$!" unless defined $pid; if (!$pid) { - exec('git-log', "--max-count=$limit", '--topo-order', + exec('git-log', '--topo-order', '--pretty=oneline', $tip, '^HEAD') or die "$!"; } while (<$fh>) { @@ -168,7 +168,7 @@ my $limit = 20; for (@origin) { my ($sha1, $name) = @$_; - my @log = shortlog($sha1, $limit + 1); + my @log = shortlog($sha1); if ($limit + 1 <= @log) { print "\n* $name: (" . scalar(@log) . " commits)\n"; } |