summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2008-03-07 10:53:10 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-03-07 10:53:10 -0800
commit792f0e7d1a156379fb71deb2e65c349c595a9202 (patch)
tree9eb99a272d923a3490be8e0f4cda3c6303f60859 /Documentation
parentbash: git-branch -d and -m lists only local branches (diff)
parentrun-command: Redirect stderr to a pipe before redirecting stdout to stderr (diff)
downloadtgif-792f0e7d1a156379fb71deb2e65c349c595a9202.tar.xz
Merge branch 'cc/run-command'
* cc/run-command: run-command: Redirect stderr to a pipe before redirecting stdout to stderr
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/technical/api-run-command.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/Documentation/technical/api-run-command.txt b/Documentation/technical/api-run-command.txt
index fde3b45321..c364a22c8f 100644
--- a/Documentation/technical/api-run-command.txt
+++ b/Documentation/technical/api-run-command.txt
@@ -111,9 +111,10 @@ stderr as follows:
.no_stdin, .no_stdout, .no_stderr: The respective channel is
redirected to /dev/null.
- .stdout_to_stderr: stdout of the child is redirected to the
- parent's stderr (i.e. *not* to what .err or
- .no_stderr specify).
+ .stdout_to_stderr: stdout of the child is redirected to its
+ stderr. This happens after stderr is itself redirected.
+ So stdout will follow stderr to wherever it is
+ redirected.
To modify the environment of the sub-process, specify an array of
string pointers (NULL terminated) in .env: