Meta/cook: omit base merges from commit count of a topic

todo
Junio C Hamano 2026-08-25 20:20:40 -07:00
parent d943b576be
commit 60adf576c2
1 changed files with 5 additions and 1 deletions

6
cook
View File

@ -377,7 +377,11 @@ sub get_commit {

for my $branch (keys %topic) {
my @log = ();
my $n = scalar(@{$topic{$branch}{'log'}});
my $n = scalar(
grep {
$commit{$_}->{'log'} !~ /^[-.+] Merge branch/;
} @{$topic{$branch}{'log'}}
);
if (!$n) {
delete $topic{$branch};
next;