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

Function common_prefix_size

reftable/basics.c:258–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258size_t common_prefix_size(struct reftable_buf *a, struct reftable_buf *b)
259{
260 size_t p = 0;
261 for (; p < a->len && p < b->len; p++)
262 if (a->buf[p] != b->buf[p])
263 break;
264 return p;
265}
266
267uint32_t hash_size(enum reftable_hash id)
268{

Callers 3

update_commonFunction · 0.85
reftable_encode_keyFunction · 0.85

Calls

no outgoing calls

Tested by 1