mirror of
https://github.com/git/git.git
synced 2024-11-19 05:24:21 +01: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:
parent
b595ed1478
commit
c9d023b2a6
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user