MCPcopy Create free account
hub / github.com/git/git / pq_less

Function pq_less

reftable/pq.c:16–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14#include "basics.h"
15
16int pq_less(struct pq_entry *a, struct pq_entry *b)
17{
18 int cmp, err;
19
20 err = reftable_record_cmp(a->rec, b->rec, &cmp);
21 if (err < 0)
22 return err;
23
24 if (cmp == 0)
25 return a->index > b->index;
26 return cmp < 0;
27}
28
29int merged_iter_pqueue_remove(struct merged_iter_pqueue *pq, struct pq_entry *out)
30{

Calls 1

reftable_record_cmpFunction · 0.85

Tested by 1