Add option RUN_COMMAND_NO_STDOUT, which sets no_stdout on a child process. This will be used by git clone when calling index-pack on a downloaded packfile. Signed-off-by: Kevin Wern <kevin.m.wern@xxxxxxxxx> --- run-command.c | 1 + run-command.h | 1 + 2 files changed, 2 insertions(+) diff --git a/run-command.c b/run-command.c index 863dad5..c4f82f9 100644 --- a/run-command.c +++ b/run-command.c @@ -574,6 +574,7 @@ int run_command_v_opt_cd_env(const char **argv, int opt, const char *dir, const cmd.silent_exec_failure = opt & RUN_SILENT_EXEC_FAILURE ? 1 : 0; cmd.use_shell = opt & RUN_USING_SHELL ? 1 : 0; cmd.clean_on_exit = opt & RUN_CLEAN_ON_EXIT ? 1 : 0; + cmd.no_stdout = opt & RUN_COMMAND_NO_STDOUT ? 1 : 0; cmd.dir = dir; cmd.env = env; return run_command(&cmd); diff --git a/run-command.h b/run-command.h index 42917e8..2d2c871 100644 --- a/run-command.h +++ b/run-command.h @@ -70,6 +70,7 @@ extern int run_hook_ve(const char *const *env, const char *name, va_list args); #define RUN_SILENT_EXEC_FAILURE 8 #define RUN_USING_SHELL 16 #define RUN_CLEAN_ON_EXIT 32 +#define RUN_COMMAND_NO_STDOUT 64 int run_command_v_opt(const char **argv, int opt); /* -- 2.7.4