Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/git/git
/ strvec_detach
Function
strvec_detach
strvec.c:140–149 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
138
}
139
140
const char **strvec_detach(struct strvec *array)
141
{
142
if (array->v == empty_strvec)
143
return xcalloc(1, sizeof(const char *));
144
else {
145
const char **ret = array->v;
146
strvec_init(array);
147
return ret;
148
}
149
}
Callers
1
test_strvec__detach
Function · 0.85
Calls
2
xcalloc
Function · 0.85
strvec_init
Function · 0.85
Tested by
1
test_strvec__detach
Function · 0.68