Redirect update hook stdout to stderr.
[git/git.git] / run-command.h
CommitLineData
b1bf95bb
JW
1#ifndef RUN_COMMAND_H
2#define RUN_COMMAND_H
3
4#define MAX_RUN_COMMAND_ARGS 256
5enum {
6 ERR_RUN_COMMAND_FORK = 10000,
7 ERR_RUN_COMMAND_EXEC,
8 ERR_RUN_COMMAND_WAITPID,
9 ERR_RUN_COMMAND_WAITPID_WRONG_PID,
10 ERR_RUN_COMMAND_WAITPID_SIGNAL,
11 ERR_RUN_COMMAND_WAITPID_NOEXIT,
12};
13
128aed68 14#define RUN_COMMAND_NO_STDIO 1
77cb17e9 15#define RUN_GIT_CMD 2 /*If this is to be git sub-command */
cd83c74c 16#define RUN_COMMAND_STDOUT_TO_STDERR 4
9b0b5093
SP
17int run_command_v_opt(const char **argv, int opt);
18int run_command_v(const char **argv);
cd83c74c 19int run_command_opt(int opt, const char *cmd, ...);
b1bf95bb
JW
20int run_command(const char *cmd, ...);
21
22#endif