summaryrefslogtreecommitdiff
path: root/revision.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2015-06-01 09:56:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-06-01 16:29:51 (GMT)
commitce4e7b2ac38cfe5e4c165411d2e37b22e445ab88 (patch)
tree19b349d56b9879bb48ea3fb942a5b284759b8722 /revision.c
parentdaf7d86783b1bd2065881a3f0957f69c79a52fd7 (diff)
downloadgit-ce4e7b2ac38cfe5e4c165411d2e37b22e445ab88.zip
git-ce4e7b2ac38cfe5e4c165411d2e37b22e445ab88.tar.gz
git-ce4e7b2ac38cfe5e4c165411d2e37b22e445ab88.tar.bz2
suppress errors on missing UNINTERESTING links
When we are traversing commit parents along the UNINTERESTING side of a revision walk, we do not care if the parent turns out to be missing. That lets us limit traversals using unreachable and possibly incomplete sections of history. However, we do still print error messages about the missing commits; this patch suppresses the error, as well. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'revision.c')
-rw-r--r--revision.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/revision.c b/revision.c
index 983e4c4..9f5476d 100644
--- a/revision.c
+++ b/revision.c
@@ -807,7 +807,7 @@ static int add_parents_to_list(struct rev_info *revs, struct commit *commit,
parent = parent->next;
if (p)
p->object.flags |= UNINTERESTING;
- if (parse_commit(p) < 0)
+ if (parse_commit_gently(p, 1) < 0)
continue;
if (p->parents)
mark_parents_uninteresting(p);