@leroysheep / Socializer / commits / dedb8aa7d4

Meta/cook: elide a topic that is too large

Junio C Hamano committed Mar 28, 2012 at 15:22 UTC dedb8aa7d476ea7b83732a724b6a80c0ab2657e0
1 file changed +6
cook
+6
index 5fa543fb38..4369ac73ff 100755 --- a/cook +++ b/cook @@ -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;