From: Junio C Hamano Date: Sun, 11 Sep 2005 01:24:46 +0000 (-0700) Subject: Fix 'git-show-branch --list ' X-Git-Tag: v0.99.7~91 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c9d023b2a63ef233c63e1b8f95aabac74362719d;p=git.git Fix 'git-show-branch --list ' It mistakenly failed to output anything when given a single head. Signed-off-by: Junio C Hamano --- 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,