Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
77
void strbuf_release(struct strbuf *sb)
78
{
79
if (sb->alloc) {
80
free(sb->buf);
81
strbuf_init(sb, 0);
82
}
83
}
84
85
char *strbuf_detach(struct strbuf *sb, size_t *sz)
86
{
Callers
15
finish_repacking_promisor_objects
Function · 0.85
open_midx_bitmap_1
Function · 0.85
for_each_preferred_bitmap_tip
Function · 0.85
handle_path_include
Function · 0.85
prepare_include_condition_pattern
Function · 0.85
include_by_gitdir
Function · 0.85
include_by_branch
Function · 0.85
at_least_one_url_matches_glob
Function · 0.85
git_config_push_split_parameter
Function · 0.85
git_config_from_parameters
Function · 0.85
do_config_from
Function · 0.85
read_early_config
Function · 0.85
Calls
1
strbuf_init
Function · 0.85
Tested by
15
parse_pathspec_file
Function · 0.68
test_odb_inmemory__for_each_object
Function · 0.68
test_strbuf__dynamic_init
Function · 0.68
test_utf8_width__strbuf_utf8_align
Function · 0.68
test_hash__aaaaaaaaaa_100000
Function · 0.68
test_hash__alphabet_100000
Function · 0.68
print_commit
Function · 0.68
app__unhandled_command
Function · 0.68
app__big_command
Function · 0.68
app__chunk_command
Function · 0.68
app__slow_command
Function · 0.68
app__sendbytes_command
Function · 0.68