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

Function oidclr

hash.h:417–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417static inline void oidclr(struct object_id *oid,
418 const struct git_hash_algo *algop)
419{
420 memset(oid->hash, 0, GIT_MAX_RAWSZ);
421 oid->algo = hash_algo_by_ptr(algop);
422}
423
424static inline struct object_id *oiddup(const struct object_id *src)
425{

Callers 15

fetch_symrefFunction · 0.85
init_notesFunction · 0.85
remove_noteFunction · 0.85
fill_blob_sha1_and_modeFunction · 0.85
rollback_is_safeFunction · 0.85
alloc_delete_refFunction · 0.85
parse_push_cas_optionFunction · 0.85
apply_casFunction · 0.85
prep_excludeFunction · 0.85
refs_resolve_ref_unsafeFunction · 0.85

Calls 1

hash_algo_by_ptrFunction · 0.85

Tested by 1

cmd__submodule_configFunction · 0.68