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

Function run_git

scalar.c:76–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76LAST_ARG_MUST_BE_NULL
77static 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
93struct scalar_config {
94 const char *key;

Callers 10

toggle_maintenanceFunction · 0.85
add_or_remove_enlistmentFunction · 0.85
start_fsmonitor_daemonFunction · 0.85
stop_fsmonitor_daemonFunction · 0.85
cmd_cloneFunction · 0.85
cmd_diagnoseFunction · 0.85
cmd_listFunction · 0.85
cmd_runFunction · 0.85
cmd_helpFunction · 0.85

Calls 2

strvec_pushFunction · 0.85
run_commandFunction · 0.85

Tested by

no test coverage detected