show-branch: Be nicer when running in a corrupt repository.
[git/jnareb-git/bp-gitweb.git] / run-command.h
blob5ee0972241030d2f6d87a465c4726e6cc3ab803a
1 #ifndef RUN_COMMAND_H
2 #define RUN_COMMAND_H
4 #define MAX_RUN_COMMAND_ARGS 256
5 enum {
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,
14 int run_command_v(int argc, char **argv);
15 int run_command(const char *cmd, ...);
17 #endif