mirror of
https://github.com/git/git.git
synced 2024-12-18 06:14:59 +08:00
4dd47c3b86
This commit moves the code that computes the dirname of argv[0]
from git.c's main() to git_set_argv0_path() and renames the function
to git_extract_argv0_path(). This makes the code in git.c's main
less cluttered, and we can use the dirname computation from other
main() functions too.
[ spr:
- split Steve's original commit and wrote new commit message.
- Integrated Johannes Schindelin's
cca1704897
while rebasing onto master.
]
Signed-off-by: Steve Haslam <shaslam@lastminute.com>
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Acked-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
14 lines
487 B
C
14 lines
487 B
C
#ifndef GIT_EXEC_CMD_H
|
|
#define GIT_EXEC_CMD_H
|
|
|
|
extern void git_set_argv_exec_path(const char *exec_path);
|
|
extern const char *git_extract_argv0_path(const char *path);
|
|
extern const char *git_exec_path(void);
|
|
extern void setup_path(void);
|
|
extern const char **prepare_git_cmd(const char **argv);
|
|
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 */
|