e1464ca7bb
We will need the command invocation path in system_path(). This path was passed to setup_path(), but system_path() can be called earlier, for example via: main commit_pager_choice setup_pager git_config git_etc_gitconfig system_path Therefore, we introduce git_set_argv0_path() and call it as soon as possible. Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>
13 lines
420 B
C
13 lines
420 B
C
#ifndef GIT_EXEC_CMD_H
|
|
#define GIT_EXEC_CMD_H
|
|
|
|
extern void git_set_argv_exec_path(const char *exec_path);
|
|
extern void git_set_argv0_path(const char *path);
|
|
extern const char* git_exec_path(void);
|
|
extern void setup_path(void);
|
|
extern int execv_git_cmd(const char **argv); /* NULL terminated */
|
|
extern int execl_git_cmd(const char *cmd, ...);
|
|
extern const char *system_path(const char *path);
|
|
|
|
#endif /* GIT_EXEC_CMD_H */
|