MCPcopy Index your code
hub / github.com/git/git / prio_queue_peek

Function prio_queue_peek

prio-queue.c:97–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void *prio_queue_peek(struct prio_queue *queue)
98{
99 if (!queue->nr)
100 return NULL;
101 if (!queue->compare)
102 return queue->array[queue->nr - 1].data;
103 return queue->array[0].data;
104}
105
106void prio_queue_replace(struct prio_queue *queue, void *thing)
107{

Callers 9

still_interestingFunction · 0.85
explore_to_depthFunction · 0.85
pop_most_recent_commitFunction · 0.85
process_commitFunction · 0.85
test_prio_queueFunction · 0.85
lazy_queue_getFunction · 0.85
join_revsFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_prio_queueFunction · 0.68