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

Function get_oid_hex_algop

hex.c:26–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26int get_oid_hex_algop(const char *hex, struct object_id *oid,
27 const struct git_hash_algo *algop)
28{
29 int ret = get_hash_hex_algop(hex, oid->hash, algop);
30 if (!ret) {
31 oid_set_algo(oid, algop);
32 if (algop->rawsz != GIT_MAX_RAWSZ)
33 memset(oid->hash + algop->rawsz, 0,
34 GIT_MAX_RAWSZ - algop->rawsz);
35 }
36 return ret;
37}
38
39/*
40 * NOTE: This function relies on hash algorithms being in order from shortest

Callers 15

get_oid_hex_anyFunction · 0.85
get_oid_hexFunction · 0.85
parse_oid_hex_algop_implFunction · 0.85
process_shallowFunction · 0.85
parse_info_refsFunction · 0.85
add_packed_gitFunction · 0.85
load_midx_chain_fd_stFunction · 0.85
send_infoFunction · 0.85
odb_read_object_peeledFunction · 0.85
get_refs_list_using_listFunction · 0.85
register_replace_refFunction · 0.85

Calls 2

get_hash_hex_algopFunction · 0.85
oid_set_algoFunction · 0.85

Tested by

no test coverage detected