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

Function strbuf_add

strbuf.c:309–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309void strbuf_add(struct strbuf *sb, const void *data, size_t len)
310{
311 strbuf_grow(sb, len);
312 memcpy(sb->buf + sb->len, data, len);
313 strbuf_setlen(sb, sb->len + len);
314}
315
316void strbuf_addstrings(struct strbuf *sb, const char *s, size_t n)
317{

Callers 15

handle_path_includeFunction · 0.85
include_by_gitdirFunction · 0.85
include_by_branchFunction · 0.85
store_create_sectionFunction · 0.85
enter_repoFunction · 0.85
checkout_entry_caFunction · 0.85
list_cmds_by_configFunction · 0.85
write_zip_entryFunction · 0.85
apply_dir_renameFunction · 0.85

Calls 2

strbuf_growFunction · 0.85
strbuf_setlenFunction · 0.85

Tested by 4

prefix_magicFunction · 0.68
collect_expectFunction · 0.68