MCPcopy Index your code
hub / github.com/git/git / strbuf_add_oid_hex

Function strbuf_add_oid_hex

hex.c:127–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void strbuf_add_oid_hex(struct strbuf *sb, const struct object_id *oid)
128{
129 const struct git_hash_algo *algop = oid->algo ?
130 &hash_algos[oid->algo] : the_hash_algo;
131 strbuf_grow(sb, algop->hexsz);
132 hash_to_hex_algop_r(sb->buf + sb->len, oid->hash, algop);
133 strbuf_setlen(sb, sb->len + algop->hexsz);
134}

Callers 13

refer_to_commitFunction · 0.85
do_pick_commitFunction · 0.85
add_merge_infoFunction · 0.85
format_commit_oneFunction · 0.85
fsck_describe_objectFunction · 0.85
join_oid_array_hexFunction · 0.85
write_shallow_commits_1Function · 0.85
ident_to_worktreeFunction · 0.85
push_refs_with_pushFunction · 0.85
expand_atomFunction · 0.85
for_each_replace_nameFunction · 0.85

Calls 3

strbuf_growFunction · 0.85
hash_to_hex_algop_rFunction · 0.85
strbuf_setlenFunction · 0.85

Tested by

no test coverage detected