Fix 'git-show-branch --list <head>'
It mistakenly failed to output anything when given a single head.
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff --git a/show-branch.c b/show-branch.c
index c117c53..262acf5 100644
--- a/show-branch.c
+++ b/show-branch.c
@@ -427,7 +427,7 @@
return show_independent(rev, num_rev, ref_name, rev_mask);
/* Show list; --more=-1 means list-only */
- if (1 < num_rev) {
+ if (1 < num_rev || extra < 0) {
for (i = 0; i < num_rev; i++) {
int j;
int is_head = rev_is_head(head_path,