X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=rev-list.c;h=812d237f472d943767764def599b70e4039d7d8a;hb=3443546f6ef57fe28ea5cca232df8e400bfc3883;hp=8e4d83efba369c5ce925fd1e22d36a768917147b;hpb=3bddd7dbba2f178e7fab5916522bf398eb55ffc0;p=git.git diff --git a/rev-list.c b/rev-list.c index 8e4d83ef..812d237f 100644 --- a/rev-list.c +++ b/rev-list.c @@ -190,7 +190,7 @@ static int count_distance(struct commit_list *entry) if (commit->object.flags & (UNINTERESTING | COUNTED)) break; - if (!revs.paths || (commit->object.flags & TREECHANGE)) + if (!revs.prune_fn || (commit->object.flags & TREECHANGE)) nr++; commit->object.flags |= COUNTED; p = commit->parents; @@ -224,7 +224,7 @@ static struct commit_list *find_bisection(struct commit_list *list) nr = 0; p = list; while (p) { - if (!revs.paths || (p->item->object.flags & TREECHANGE)) + if (!revs.prune_fn || (p->item->object.flags & TREECHANGE)) nr++; p = p->next; } @@ -234,7 +234,7 @@ static struct commit_list *find_bisection(struct commit_list *list) for (p = list; p; p = p->next) { int distance; - if (revs.paths && !(p->item->object.flags & TREECHANGE)) + if (revs.prune_fn && !(p->item->object.flags & TREECHANGE)) continue; distance = count_distance(p);