mirror of
https://github.com/git/git.git
synced 2026-03-13 18:33:25 +01:00
This function is intended to be used in place of exec[vl]_git_cmd() that follows a fork. It constructs the (at most) 3 paths that execv_git_cmd() searches manually for the git command and hands them over to spawnvppe_pipe(). The use case in get_pack() is one of the simplest possible.
12 lines
366 B
C
12 lines
366 B
C
#ifndef __GIT_EXEC_CMD_H_
|
|
#define __GIT_EXEC_CMD_H_
|
|
|
|
extern void git_set_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, ...);
|
|
extern int spawnv_git_cmd(const char **argv, int pin[2], int pout[2]);
|
|
|
|
|
|
#endif /* __GIT_EXEC_CMD_H_ */
|