From c9d023b2a63ef233c63e1b8f95aabac74362719d Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sat, 10 Sep 2005 18:24:46 -0700 Subject: [PATCH] Fix 'git-show-branch --list ' It mistakenly failed to output anything when given a single head. Signed-off-by: Junio C Hamano --- show-branch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/show-branch.c b/show-branch.c index c117c536d..262acf5ce 100644 --- a/show-branch.c +++ b/show-branch.c @@ -427,7 +427,7 @@ int main(int ac, char **av) 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, -- 2.30.2