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

Function strbuf_release

strbuf.c:77–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void strbuf_release(struct strbuf *sb)
78{
79 if (sb->alloc) {
80 free(sb->buf);
81 strbuf_init(sb, 0);
82 }
83}
84
85char *strbuf_detach(struct strbuf *sb, size_t *sz)
86{

Callers 15

open_midx_bitmap_1Function · 0.85
handle_path_includeFunction · 0.85
include_by_gitdirFunction · 0.85
include_by_branchFunction · 0.85
do_config_fromFunction · 0.85
read_early_configFunction · 0.85

Calls 1

strbuf_initFunction · 0.85

Tested by 15

parse_pathspec_fileFunction · 0.68
print_commitFunction · 0.68
app__unhandled_commandFunction · 0.68
app__big_commandFunction · 0.68
app__chunk_commandFunction · 0.68
app__slow_commandFunction · 0.68
app__sendbytes_commandFunction · 0.68