aboutsummaryrefslogtreecommitdiffstats
path: root/run-command.h
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2024-07-13 21:08:23 +0000
committerJunio C Hamano <gitster@pobox.com>2024-07-13 16:23:37 -0700
commit877da5e208dfd747750e16f34a0275f3e598d8d2 (patch)
tree56412f0760496ba059d895de2d3b435614b0d9ce /run-command.h
parentrun-command(win32): resolve the path to the Unix shell early (diff)
downloadgit-877da5e208dfd747750e16f34a0275f3e598d8d2.tar.gz
git-877da5e208dfd747750e16f34a0275f3e598d8d2.zip
run-command: declare the `git_shell_path()` function globally
The intention is to use it in `git var GIT_SHELL_PATH`, therefore we need this function to stop being file-local only. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'run-command.h')
-rw-r--r--run-command.h5
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.