diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-07-17 10:47:27 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-07-17 10:47:27 -0700 |
| commit | 76e018b9a104d4449651f1e3b00b4e0d9a369e87 (patch) | |
| tree | e4c6d30873faa4523602f9d324dba3a5250c9240 /run-command.h | |
| parent | c7e8aaee983c8ea3b9784c71bd0ec6bcf03bffeb (diff) | |
| parent | 9ed143ee33c03880f4e7fd1d41df7b1bf8b244da (diff) | |
| download | git-76e018b9a104d4449651f1e3b00b4e0d9a369e87.tar.gz | |
Merge branch 'js/var-git-shell-path'
"git var GIT_SHELL_PATH" should report the path to the shell used
to spawn external commands, but it didn't do so on Windows, which
has been corrected.
* js/var-git-shell-path:
var(win32): do report the GIT_SHELL_PATH that is actually used
run-command: declare the `git_shell_path()` function globally
run-command(win32): resolve the path to the Unix shell early
mingw(is_msys2_sh): handle forward slashes in the `sh.exe` path, too
win32: override `fspathcmp()` with a directory separator-aware version
strvec: declare the `strvec_push_nodup()` function globally
run-command: refactor getting the Unix shell path into its own function
Diffstat (limited to 'run-command.h')
| -rw-r--r-- | run-command.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/run-command.h b/run-command.h index 55f6631a2a..03e7222d8b 100644 --- a/run-command.h +++ b/run-command.h @@ -196,6 +196,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). * See below for details. |
