diff options
Diffstat (limited to 'run-command.h')
-rw-r--r-- | run-command.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/run-command.h b/run-command.h index 5203a9ebb1..0211e1d471 100644 --- a/run-command.h +++ b/run-command.h @@ -42,17 +42,19 @@ struct child_process { unsigned no_stderr:1; unsigned git_cmd:1; /* if this is to be git sub-command */ unsigned stdout_to_stderr:1; + void (*preexec_cb)(void); }; int start_command(struct child_process *); int finish_command(struct child_process *); int run_command(struct child_process *); +extern int run_hook(const char *index_file, const char *name, ...); + #define RUN_COMMAND_NO_STDIN 1 #define RUN_GIT_CMD 2 /*If this is to be git sub-command */ #define RUN_COMMAND_STDOUT_TO_STDERR 4 int run_command_v_opt(const char **argv, int opt); -int run_command_v_opt_cd(const char **argv, int opt, const char *dir); /* * env (the environment) is to be formatted like environ: "VAR=VALUE". |