Skip to content

Commit ce4e7b2

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent daf7d86 commit ce4e7b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

revision.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ static int add_parents_to_list(struct rev_info *revs, struct commit *commit,
807807
parent = parent->next;
808808
if (p)
809809
p->object.flags |= UNINTERESTING;
810-
if (parse_commit(p) < 0)
810+
if (parse_commit_gently(p, 1) < 0)
811811
continue;
812812
if (p->parents)
813813
mark_parents_uninteresting(p);

0 commit comments

Comments
 (0)