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

Function execv_git_cmd

exec-cmd.c:359–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357}
358
359int execv_git_cmd(const char **argv)
360{
361 struct strvec nargv = STRVEC_INIT;
362
363 prepare_git_cmd(&nargv, argv);
364 trace_argv_printf(nargv.v, "trace: exec:");
365
366 /* execvp() can only ever return if it fails */
367 sane_execvp("git", (char **)nargv.v);
368
369 trace_printf("trace: exec failed: %s\n", strerror(errno));
370
371 strvec_clear(&nargv);
372 return -1;
373}
374
375int execl_git_cmd(const char *cmd, ...)
376{

Callers 4

execl_git_cmdFunction · 0.85
do_generic_cmdFunction · 0.85
ut_005execFunction · 0.85
showFunction · 0.85

Calls 3

prepare_git_cmdFunction · 0.85
sane_execvpFunction · 0.85
strvec_clearFunction · 0.85

Tested by 1

ut_005execFunction · 0.68