Skip to content

Commit a94df75

Browse files
author
Junio C Hamano
committed
git-topic updates.
1 parent 606e720 commit a94df75

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

git-topic.perl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,14 @@ sub wrap_print {
121121
}
122122
123123
print '*' . rebase_marker($sha1, $stage[0], \@in_next);
124-
print " $topic ($date)\n";
124+
my $count = "";
125+
if (1 < @revs) {
126+
$count = " " . (scalar @revs) . " commits";
127+
}
128+
elsif (@revs) {
129+
$count = " 1 commit";
130+
}
131+
print " $topic ($date)$count\n";
125132
describe_topic($topic);
126133
for my $item (@revs) {
127134
my $mark = $item->[2];

0 commit comments

Comments
 (0)