MCPcopy Create free account
hub / github.com/git/git / strvec_push_nodup

Function strvec_push_nodup

strvec.c:13–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13void strvec_push_nodup(struct strvec *array, char *value)
14{
15 if (array->v == empty_strvec)
16 array->v = NULL;
17
18 ALLOC_GROW(array->v, array->nr + 2, array->alloc);
19 array->v[array->nr++] = value;
20 array->v[array->nr] = NULL;
21}
22
23const char *strvec_push(struct strvec *array, const char *value)
24{

Callers 4

strvec_pushFunction · 0.85
strvec_pushfFunction · 0.85
strvec_splitFunction · 0.85
prepare_shell_cmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected