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

Function void_hashcmp

oid-array.c:16–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16static int void_hashcmp(const void *va, const void *vb)
17{
18 const struct object_id *a = va, *b = vb;
19 int ret;
20 if (a->algo == b->algo)
21 ret = oidcmp(a, b);
22 else
23 ret = a->algo > b->algo ? 1 : -1;
24 return ret;
25}
26
27void oid_array_sort(struct oid_array *array)
28{

Callers

nothing calls this directly

Calls 1

oidcmpFunction · 0.85

Tested by

no test coverage detected