From: Jeff King Date: Mon, 1 Jun 2015 09:56:40 +0000 (-0400) Subject: suppress errors on missing UNINTERESTING links X-Git-Tag: v2.4.5~8^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ce4e7b2ac38cfe5e4c165411d2e37b22e445ab88;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/revision.c b/revision.c index 983e4c49ff..9f5476dc70 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);