| 429 | } |
| 430 | |
| 431 | LAST_ARG_MUST_BE_NULL |
| 432 | static 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 | |
| 448 | static int parse_range(const char **p, |
| 449 | unsigned long *offset, unsigned long *count) |
no test coverage detected