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

Function git_shell_path

run-command.c:277–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277char *git_shell_path(void)
278{
279#ifndef GIT_WINDOWS_NATIVE
280 return xstrdup(SHELL_PATH);
281#else
282 char *p = locate_in_PATH("sh");
283 convert_slashes(p);
284 return p;
285#endif
286}
287
288static const char **prepare_shell_cmd(struct strvec *out, const char **argv)
289{

Callers 2

prepare_shell_cmdFunction · 0.85
shell_pathFunction · 0.85

Calls 3

xstrdupFunction · 0.85
locate_in_PATHFunction · 0.85
convert_slashesFunction · 0.85

Tested by

no test coverage detected