X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=rev-list.c;h=846aa2f79e3c90cf69eadec276b1b56165bc4601;hb=fee8825613001931daaa30d038521ae2a85d5234;hp=309070fedd74b5aae204694fd40ebd48827e03f2;hpb=89ab859e9452cbc8f1f15afab52257e9b789c899;p=git.git diff --git a/rev-list.c b/rev-list.c index 309070fe..846aa2f7 100644 --- a/rev-list.c +++ b/rev-list.c @@ -228,6 +228,17 @@ static void mark_parents_uninteresting(struct commit *commit) commit->object.flags |= UNINTERESTING; /* + * Normally we haven't parsed the parent + * yet, so we won't have a parent of a parent + * here. However, it may turn out that we've + * reached this commit some other way (where it + * wasn't uninteresting), in which case we need + * to mark its parents recursively too.. + */ + if (commit->parents) + mark_parents_uninteresting(commit); + + /* * A missing commit is ok iff its parent is marked * uninteresting. *