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

Function strbuf_addbuf

strbuf.c:325–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325void strbuf_addbuf(struct strbuf *sb, const struct strbuf *sb2)
326{
327 strbuf_grow(sb, sb2->len);
328 memcpy(sb->buf + sb->len, sb2->buf, sb2->len);
329 strbuf_setlen(sb, sb->len + sb2->len);
330}
331
332const char *strbuf_join_argv(struct strbuf *buf,
333 int argc, const char **argv, char delim)

Callers 15

get_common_dir_noenvFunction · 0.85
do_submodule_pathFunction · 0.85
pop_stack_elementFunction · 0.85
format_ref_array_itemFunction · 0.85
fmt_merge_msg_sigsFunction · 0.85
redact_sensitive_headerFunction · 0.85
reject_entryFunction · 0.85
reject_outsideFunction · 0.85
get_linked_worktreeFunction · 0.85
repair_worktree_at_pathFunction · 0.85
append_sub_jwFunction · 0.85

Calls 2

strbuf_growFunction · 0.85
strbuf_setlenFunction · 0.85

Tested by

no test coverage detected