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

Function strvec_pushf

strvec.c:29–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29const char *strvec_pushf(struct strvec *array, const char *fmt, ...)
30{
31 va_list ap;
32 struct strbuf v = STRBUF_INIT;
33
34 va_start(ap, fmt);
35 strbuf_vaddf(&v, fmt, ap);
36 va_end(ap);
37
38 strvec_push_nodup(array, strbuf_detach(&v, NULL));
39 return array->v[array->nr - 1];
40}
41
42void strvec_pushl(struct strvec *array, ...)
43{

Callers 15

get_packFunction · 0.85
do_fetch_pack_v2Function · 0.85
refspec_ref_prefixesFunction · 0.85
create_pack_fileFunction · 0.85
send_shallow_listFunction · 0.85
push_ssh_optionsFunction · 0.85
git_connectFunction · 0.85
find_unpushed_submodulesFunction · 0.85
push_submoduleFunction · 0.85

Calls 3

strbuf_vaddfFunction · 0.85
strvec_push_nodupFunction · 0.85
strbuf_detachFunction · 0.85

Tested by 5

refspec_ref_prefixesFunction · 0.68
test_strvec__pushfFunction · 0.68
cmd_mainFunction · 0.68
daemon__start_serverFunction · 0.68
ut_400ancestryFunction · 0.68