X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=run-command.h;h=967ba8cc09786934724132b629587419f195b245;hb=3c651491f28e01a9ee0ddaecd05fb7a211d218c3;hp=0c00b25ff2ea8710a1d963619d633a9be1a6f626;hpb=5a3669340b3c81fd25a10f02f44ecd27cc100fd2;p=git.git diff --git a/run-command.h b/run-command.h index 0c00b25ff..967ba8cc0 100644 --- a/run-command.h +++ b/run-command.h @@ -33,6 +33,7 @@ struct child_process { unsigned git_cmd:1; /* if this is to be git sub-command */ unsigned silent_exec_failure:1; unsigned stdout_to_stderr:1; + unsigned use_shell:1; void (*preexec_cb)(void); }; @@ -46,6 +47,7 @@ extern int run_hook(const char *index_file, const char *name, ...); #define RUN_GIT_CMD 2 /*If this is to be git sub-command */ #define RUN_COMMAND_STDOUT_TO_STDERR 4 #define RUN_SILENT_EXEC_FAILURE 8 +#define RUN_USING_SHELL 16 int run_command_v_opt(const char **argv, int opt); /* @@ -70,7 +72,7 @@ struct async { int (*proc)(int fd, void *data); void *data; int out; /* caller reads from here and closes it */ -#ifndef __MINGW32__ +#ifndef WIN32 pid_t pid; #else HANDLE tid;