diff options
| author | 2026-03-26 09:20:51 +0000 | |
|---|---|---|
| committer | 2026-03-26 09:20:51 +0000 | |
| commit | 32c34501f5e7cfb6573824a82c8a5fa1be317ec8 (patch) | |
| tree | 45963d48bf53d10dd148aa076415d95ee32f7219 /commitquery/priority_queue.go | |
| parent | *: Reorder imports (diff) | |
| signature | No signature | |
commitquery: Some file reorganizations v0.1.116
Diffstat (limited to 'commitquery/priority_queue.go')
| -rw-r--r-- | commitquery/priority_queue.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/commitquery/priority_queue.go b/commitquery/priority_queue.go index 0ca57f7d..0d948c64 100644 --- a/commitquery/priority_queue.go +++ b/commitquery/priority_queue.go @@ -66,3 +66,14 @@ func (queue *priorityQueue) PopNode() nodeIndex { return idx } + +func (query *Query) queueHasNonStale(queue *priorityQueue) bool { + // TODO + for _, idx := range queue.items { + if !query.hasAnyMarks(idx, markStale) { + return true + } + } + + return false +} |
