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

Function setup_child_process

add-patch.c:431–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429}
430
431LAST_ARG_MUST_BE_NULL
432static void setup_child_process(struct add_p_state *s,
433 struct child_process *cp, ...)
434{
435 va_list ap;
436 const char *arg;
437
438 va_start(ap, cp);
439 while ((arg = va_arg(ap, const char *)))
440 strvec_push(&cp->args, arg);
441 va_end(ap);
442
443 cp->git_cmd = 1;
444 strvec_pushf(&cp->env,
445 INDEX_ENVIRONMENT "=%s", s->index_file);
446}
447
448static int parse_range(const char **p,
449 unsigned long *offset, unsigned long *count)

Callers 4

parse_diffFunction · 0.85
run_apply_checkFunction · 0.85
apply_for_checkoutFunction · 0.85
apply_patchFunction · 0.85

Calls 2

strvec_pushFunction · 0.85
strvec_pushfFunction · 0.85

Tested by

no test coverage detected