@@ -274,7 +274,7 @@ int sane_execvp(const char *file, char * const argv[])
return -1;
}
-static char *git_shell_path(void)
+char *git_shell_path(void)
{
#ifndef GIT_WINDOWS_NATIVE
return xstrdup(SHELL_PATH);
@@ -195,6 +195,11 @@ int is_executable(const char *name);
*/
int exists_in_PATH(const char *command);
+/**
+ * Return the path that is used to execute Unix shell command-lines.
+ */
+char *git_shell_path(void);
+
/**
* Start a sub-process. Takes a pointer to a `struct child_process`
* that specifies the details and returns pipe FDs (if requested).