aboutsummaryrefslogtreecommitdiff
path: root/run-command.h
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-11-11 02:29:37 -0500
committerJunio C Hamano <gitster@pobox.com>2007-11-11 17:09:55 -0800
commitb73a4397590df9582dd1c994cac30e55e26b0b1e (patch)
tree0b9e8f83a0f59e170954ea7d6b9d7e9c068d4941 /run-command.h
parenta3b0079c6a2e6336b061465623b8f2db308a6978 (diff)
downloadgit-b73a4397590df9582dd1c994cac30e55e26b0b1e.tar.gz
git-b73a4397590df9582dd1c994cac30e55e26b0b1e.tar.xz
run-command: Support sending stderr to /dev/null
Some callers may wish to redirect stderr to /dev/null in some contexts, such as if they are executing a command only to get the exit status and don't want users to see whatever output it may produce as a side-effect of computing that exit status. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'run-command.h')
-rw-r--r--run-command.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/run-command.h b/run-command.h
index 94e1e9d51..1fc781d76 100644
--- a/run-command.h
+++ b/run-command.h
@@ -23,6 +23,7 @@ struct child_process {
unsigned close_out:1;
unsigned no_stdin:1;
unsigned no_stdout:1;
+ unsigned no_stderr:1;
unsigned git_cmd:1; /* if this is to be git sub-command */
unsigned stdout_to_stderr:1;
};