summaryrefslogtreecommitdiff
path: root/revision.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2008-08-18 00:37:34 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-08-18 00:37:34 -0700
commit53030f8d1199ef9da86e7ddc2b8a659a355e5f69 (patch)
tree8e3323097e24528190fa7f4568872c46655a81fb /revision.c
parentrevision --simplify-merges: use decoration instead of commit->util field (diff)
downloadtgif-53030f8d1199ef9da86e7ddc2b8a659a355e5f69.tar.xz
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>
Diffstat (limited to 'revision.c')
-rw-r--r--revision.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/revision.c b/revision.c
index 33cb207f28..8cd39da2ef 100644
--- a/revision.c
+++ b/revision.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.