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

Function hash_size

reftable/basics.c:267–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267uint32_t hash_size(enum reftable_hash id)
268{
269 if (!id)
270 return REFTABLE_HASH_SIZE_SHA1;
271 switch (id) {
272 case REFTABLE_HASH_SHA1:
273 return REFTABLE_HASH_SIZE_SHA1;
274 case REFTABLE_HASH_SHA256:
275 return REFTABLE_HASH_SIZE_SHA256;
276 }
277 abort();
278}

Calls

no outgoing calls