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

Function hash_equal

reftable/record.c:1211–1217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1209}
1210
1211static int hash_equal(const unsigned char *a, const unsigned char *b, uint32_t hash_size)
1212{
1213 if (a && b)
1214 return !memcmp(a, b, hash_size);
1215
1216 return a == b;
1217}
1218
1219int reftable_ref_record_equal(const struct reftable_ref_record *a,
1220 const struct reftable_ref_record *b, uint32_t hash_size)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected