зеркало из https://github.com/microsoft/git.git
Merge branch 'ds/topo-traversal-using-commit-graph'
Prepare use of reachability index in topological walker that works on a range (A..B). * ds/topo-traversal-using-commit-graph: revision: keep topo-walk free of unintersting commits revision: use generation for A..B --topo-order queries
This commit is contained in:
Коммит
bdc81d15a2
|
@ -436,6 +436,8 @@ static struct commit *handle_commit(struct rev_info *revs,
|
|||
die("unable to parse commit %s", name);
|
||||
if (flags & UNINTERESTING) {
|
||||
mark_parents_uninteresting(commit);
|
||||
|
||||
if (!revs->topo_order || !generation_numbers_enabled(the_repository))
|
||||
revs->limited = 1;
|
||||
}
|
||||
if (revs->sources) {
|
||||
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче