aboutsummaryrefslogtreecommitdiff
path: root/exec_cmd.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-10-31 23:53:51 -0700
committerJunio C Hamano <gitster@pobox.com>2007-10-31 23:53:51 -0700
commit452b80058235040461dae01933270c6668741b64 (patch)
treed9915c8215d2840504bf34bcb0cac91122fc334b /exec_cmd.h
parent37701381b66ab66234a0a5992f2b107a6507a2fb (diff)
parente8f5d87056093f40a271f89c2c91d1a7025e2440 (diff)
downloadgit-452b80058235040461dae01933270c6668741b64.tar.gz
git-452b80058235040461dae01933270c6668741b64.tar.xz
Merge branch 'sp/help'
* sp/help: shell should call the new setup_path() to setup $PATH include $PATH in generating list of commands for "help -a" use only the $PATH for exec'ing git commands list_commands(): simplify code by using chdir() "current_exec_path" is a misleading name, use "argv_exec_path" remove unused/unneeded "pattern" argument of list_commands "git" returns 1; "git help" and "git help -a" return 0
Diffstat (limited to 'exec_cmd.h')
-rw-r--r--exec_cmd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/exec_cmd.h b/exec_cmd.h
index 849a8395a..a892355c8 100644
--- a/exec_cmd.h
+++ b/exec_cmd.h
@@ -1,8 +1,9 @@
#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 void setup_path(const char *);
extern int execv_git_cmd(const char **argv); /* NULL terminated */
extern int execl_git_cmd(const char *cmd, ...);