1
0
mirror of https://github.com/git/git synced 2024-07-05 00:58:49 +00:00

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>
This commit is contained in:
Junio C Hamano 2005-09-10 18:24:46 -07:00
parent b595ed1478
commit c9d023b2a6

View File

@ -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,