summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: edb6ddc)
raw | patch | inline | side by side (parent: edb6ddc)
author | Scott R Parish <srp@srparish.net> | |
Sat, 27 Oct 2007 08:36:51 +0000 (01:36 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 30 Oct 2007 03:51:37 +0000 (20:51 -0700) |
Signed-off-by: Scott R Parish <srp@srparish.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
exec_cmd.c | patch | blob | history | |
exec_cmd.h | patch | blob | history | |
git.c | patch | blob | history |
diff --git a/exec_cmd.c b/exec_cmd.c
index 9b74ed2f42ad9a452f5a1d9ab55d5ca1e1de2594..33b17a6b45699e73a9b58f0ff02135eae913b47d 100644 (file)
--- a/exec_cmd.c
+++ b/exec_cmd.c
extern char **environ;
static const char *builtin_exec_path = GIT_EXEC_PATH;
-static const char *current_exec_path;
+static const char *argv_exec_path;
-void git_set_exec_path(const char *exec_path)
+void git_set_argv_exec_path(const char *exec_path)
{
- current_exec_path = exec_path;
+ argv_exec_path = exec_path;
}
{
const char *env;
- if (current_exec_path)
- return current_exec_path;
+ if (argv_exec_path)
+ return argv_exec_path;
env = getenv(EXEC_PATH_ENVIRONMENT);
if (env && *env) {
{
char git_command[PATH_MAX + 1];
int i;
- const char *paths[] = { current_exec_path,
+ const char *paths[] = { argv_exec_path,
getenv(EXEC_PATH_ENVIRONMENT),
builtin_exec_path };
diff --git a/exec_cmd.h b/exec_cmd.h
index 849a8395a0c03ba2976fe4802eee8150fdec5816..da99287552b5d3eafc495f998a936df81ee3f8b9 100644 (file)
--- a/exec_cmd.h
+++ b/exec_cmd.h
#ifndef GIT_EXEC_CMD_H
#define GIT_EXEC_CMD_H
-extern void git_set_exec_path(const char *exec_path);
+extern void git_set_argv_exec_path(const char *exec_path);
extern const char* git_exec_path(void);
extern int execv_git_cmd(const char **argv); /* NULL terminated */
extern int execl_git_cmd(const char *cmd, ...);