Meta/cook: elide a topic that is too large

This commit is contained in:
Junio C Hamano
2012-03-28 15:22:10 -07:00
parent 05cbd61b0d
commit dedb8aa7d4

6
cook
View File

@@ -241,6 +241,12 @@ sub get_commit {
}
push @desc, $commit{$_}->{'log'};
}
if (80 < @desc) {
@desc = @desc[0..4];
push @desc, "- ...";
}
my $list = join("\n", map { " " . $_ } @desc);
my $relation = describe_relation($topic{$branch});
$topic{$branch}{'desc'} = $head . $list;