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

Function oidread

hash.h:408–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406}
407
408static inline void oidread(struct object_id *oid, const unsigned char *hash,
409 const struct git_hash_algo *algop)
410{
411 memcpy(oid->hash, hash, algop->rawsz);
412 if (algop->rawsz < GIT_MAX_RAWSZ)
413 memset(oid->hash + algop->rawsz, 0, GIT_MAX_RAWSZ - algop->rawsz);
414 oid->algo = hash_algo_by_ptr(algop);
415}
416
417static inline void oidclr(struct object_id *oid,
418 const struct git_hash_algo *algop)

Callers 15

read_oneFunction · 0.85
read_link_extensionFunction · 0.85
decode_tree_entryFunction · 0.85
add_non_noteFunction · 0.85
remove_noteFunction · 0.85
parse_commit_graphFunction · 0.85
load_oid_from_graphFunction · 0.85
load_tree_for_commitFunction · 0.85
write_commit_graphFunction · 0.85
verify_one_commit_graphFunction · 0.85
get_delta_baseFunction · 0.85
get_delta_base_oidFunction · 0.85

Calls 1

hash_algo_by_ptrFunction · 0.85

Tested by

no test coverage detected