mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
git/query: process full contents of queue, even with skips
When skipping objects, we need to process the full queue, because some of the objects in the queue may have already been painted with keep. This can cost a small amount of time, but should not need to advance the frontier by more than one object, so the additional time should be proportional to the spread of the graph.
This commit is contained in:
parent
d9edee8b1a
commit
0636bfc774
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ paint(Hash *head, int nhead, Hash *tail, int ntail, Object ***res, int *nres, in
|
|||
}
|
||||
|
||||
dprint(1, "finding twixt commits\n");
|
||||
while(nskip != objq.nheap && qpop(&objq, &e)){
|
||||
while(objq.nheap != 0 && qpop(&objq, &e)){
|
||||
if(e.color == Skip)
|
||||
nskip--;
|
||||
if(oshas(&skip, e.o->hash))
|
||||
|
|
Loading…
Reference in a new issue