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

Function nonstale_queue_put

commit-reach.c:53–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51};
52
53static void nonstale_queue_put(struct nonstale_queue *queue,
54 struct commit *c)
55{
56 struct commit *old = queue->max_nonstale;
57
58 prio_queue_put(&queue->pq, c);
59 if (c->object.flags & STALE)
60 return;
61 if (!old || queue->pq.compare(old, c, queue->pq.cb_data) <= 0)
62 queue->max_nonstale = c;
63}
64
65static struct commit *nonstale_queue_get(struct nonstale_queue *queue)
66{

Callers 2

nonstale_queue_put_dedupFunction · 0.85
insert_no_dupFunction · 0.85

Calls 1

prio_queue_putFunction · 0.85

Tested by

no test coverage detected