| 74 | } |
| 75 | |
| 76 | LAST_ARG_MUST_BE_NULL |
| 77 | static int run_git(const char *arg, ...) |
| 78 | { |
| 79 | struct child_process cmd = CHILD_PROCESS_INIT; |
| 80 | va_list args; |
| 81 | const char *p; |
| 82 | |
| 83 | va_start(args, arg); |
| 84 | strvec_push(&cmd.args, arg); |
| 85 | while ((p = va_arg(args, const char *))) |
| 86 | strvec_push(&cmd.args, p); |
| 87 | va_end(args); |
| 88 | |
| 89 | cmd.git_cmd = 1; |
| 90 | return run_command(&cmd); |
| 91 | } |
| 92 | |
| 93 | struct scalar_config { |
| 94 | const char *key; |
no test coverage detected