summaryrefslogtreecommitdiff
path: root/run-command.h
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-03-12 18:37:45 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-03-13 06:40:17 (GMT)
commitf4bba25bdc0ecb4ac338de81a2a65af487701833 (patch)
treec589a5069a36db7941e3b3648a8e3dbb4978a914 /run-command.h
parent27ebd6e0443bdd795869f598ecebc9eadd64a26c (diff)
downloadgit-f4bba25bdc0ecb4ac338de81a2a65af487701833.zip
git-f4bba25bdc0ecb4ac338de81a2a65af487701833.tar.gz
git-f4bba25bdc0ecb4ac338de81a2a65af487701833.tar.bz2
Teach run-command about stdout redirection
Some potential callers of the run_command family of functions need to control not only the stdin redirection of the child, but also the stdout redirection of the child. This can now be setup much like the already existing stdin redirection. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'run-command.h')
-rw-r--r--run-command.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/run-command.h b/run-command.h
index ff09067..1c9126b 100644
--- a/run-command.h
+++ b/run-command.h
@@ -15,7 +15,9 @@ struct child_process {
const char **argv;
pid_t pid;
int in;
+ int out;
unsigned close_in:1;
+ unsigned close_out:1;
unsigned no_stdin:1;
unsigned git_cmd:1; /* if this is to be git sub-command */
unsigned stdout_to_stderr:1;