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

Function pack_geometry_cmp

repack-geometry.c:17–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17static int pack_geometry_cmp(const void *va, const void *vb)
18{
19 uint32_t aw = pack_geometry_weight(*(struct packed_git **)va),
20 bw = pack_geometry_weight(*(struct packed_git **)vb);
21
22 if (aw < bw)
23 return -1;
24 if (aw > bw)
25 return 1;
26 return 0;
27}
28
29void pack_geometry_init(struct pack_geometry *geometry,
30 struct existing_packs *existing,

Callers

nothing calls this directly

Calls 1

pack_geometry_weightFunction · 0.85

Tested by

no test coverage detected