aboutsummaryrefslogtreecommitdiffstats
path: root/run-command.c
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.c
parent92fe7c7d42cc941ed70d6fce988d6b7936a9765a (diff)
downloadgit-877da5e208dfd747750e16f34a0275f3e598d8d2.tar.gz
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.c')
-rw-r--r--run-command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/run-command.c b/run-command.c
index 60a79db8f0..45ba544932 100644
--- a/run-command.c
+++ b/run-command.c
@@ -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);