@leroysheep / Socializer / commits / a94df759cb

git-topic updates.

Junio C Hamano committed Dec 14, 2006 at 03:06 UTC a94df759cb775a9f9ec98e8e2a1dfd206af1079d
1 file changed +8 -1
git-topic.perl
+8 -1
index 2a9c70231f..4a89e24acd 100755 --- a/git-topic.perl +++ b/git-topic.perl @@ -121,7 +121,14 @@ while (<TOPIC>) { } print '*' . rebase_marker($sha1, $stage[0], \@in_next); - print " $topic ($date)\n"; + my $count = ""; + if (1 < @revs) { + $count = " " . (scalar @revs) . " commits"; + } + elsif (@revs) { + $count = " 1 commit"; + } + print " $topic ($date)$count\n"; describe_topic($topic); for my $item (@revs) { my $mark = $item->[2];