X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=revision.c;h=621feb9df716400f32d016e1d36fc368b6a884fb;hb=9103a75c584dd6edddfcb3004974a1bb48d9214c;hp=d4aaf0ef257943029923f741b4ae383bb00d7f5f;hpb=8d32d2552ee476917d216ae584d3d9b9002844d3;p=thirdparty%2Fgit.git diff --git a/revision.c b/revision.c index d4aaf0ef25..621feb9df7 100644 --- a/revision.c +++ b/revision.c @@ -436,7 +436,9 @@ static struct commit *handle_commit(struct rev_info *revs, die("unable to parse commit %s", name); if (flags & UNINTERESTING) { mark_parents_uninteresting(commit); - revs->limited = 1; + + if (!revs->topo_order || !generation_numbers_enabled(the_repository)) + revs->limited = 1; } if (revs->sources) { char **slot = revision_sources_at(revs->sources, commit); @@ -3263,6 +3265,9 @@ static void expand_topo_walk(struct rev_info *revs, struct commit *commit) struct commit *parent = p->item; int *pi; + if (parent->object.flags & UNINTERESTING) + continue; + if (parse_commit_gently(parent, 1) < 0) continue;