Files
git/exec_cmd.h
Johannes Sixt c84f02153b Add a spawnv_git_cmd() function and use it in fetch-pack.c.
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.
2007-01-19 16:35:55 +01:00

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_ */