Browse Source

revision --simplify-merges: do not leave commits unprocessed

When we still do not know how parents of a commit simplify to, we should
defer processing of the commit, not discard it.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Junio C Hamano 17 years ago
parent
commit
53030f8d11
  1. 4
      revision.c

4
revision.c

@ -1459,8 +1459,10 @@ static struct commit_list **simplify_one(struct rev_info *revs, struct commit *c @@ -1459,8 +1459,10 @@ static struct commit_list **simplify_one(struct rev_info *revs, struct commit *c
cnt++;
}
}
if (cnt)
if (cnt) {
tail = &commit_list_insert(commit, tail)->next;
return tail;
}

/*
* Rewrite our list of parents.

Loading…
Cancel
Save