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

Function cmp_packed_ref_records

refs/packed-backend.c:325–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325static int cmp_packed_ref_records(const void *v1, const void *v2,
326 void *cb_data)
327{
328 const struct snapshot *snapshot = cb_data;
329 const struct snapshot_record *e1 = v1, *e2 = v2;
330 const char *r1 = e1->start + snapshot_hexsz(snapshot) + 1;
331 const char *r2 = e2->start + snapshot_hexsz(snapshot) + 1;
332
333 return cmp_packed_refname(r1, r2);
334}
335
336/*
337 * Compare a snapshot record at `rec` to the specified NUL-terminated

Callers 1

sort_snapshotFunction · 0.85

Calls 2

snapshot_hexszFunction · 0.85
cmp_packed_refnameFunction · 0.85

Tested by

no test coverage detected