X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=run-command.h;h=a8b0c209e9b7487ce3c2b214cbebe7ad4f97fd11;hb=d5c527448db30be55553e0b125015e8d444f8dbc;hp=5203a9ebb10b14bd06862abafed0ab73d7514a3d;hpb=372c767610c4e4d7f4832d037ac51a62a59875a3;p=git.git diff --git a/run-command.h b/run-command.h index 5203a9ebb..a8b0c209e 100644 --- a/run-command.h +++ b/run-command.h @@ -42,6 +42,7 @@ 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 *); @@ -52,7 +53,6 @@ int run_command(struct child_process *); #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".