1
0
mirror of https://github.com/git/git.git synced 2024-11-19 02:13:55 +01:00
git/Documentation/technical
Christian Couder ce2cf27adc run-command: Redirect stderr to a pipe before redirecting stdout to stderr
With this patch, in the 'start_command' function after forking
we now take care of stderr in the child process before stdout.

This way if 'start_command' is called with a 'child_process'
argument like this:

	.err = -1;
	.stdout_to_stderr = 1;

then stderr will be redirected to a pipe before stdout is
redirected to stderr. So we can now get the process' stdout
from the pipe (as well as its stderr).

Earlier such a call would have redirected stdout to stderr
before stderr was itself redirected, and therefore stdout
would not have followed stderr, which would not have been
very useful anyway.

Update documentation in 'api-run-command.txt' accordingly.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Acked-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2008-03-05 12:18:03 -08:00
..
.gitignore
api-allocation-growing.txt
api-builtin.txt
api-decorate.txt
api-diff.txt Correct name of diff_flush() in API documentation 2008-02-28 13:35:09 -08:00
api-directory-listing.txt
api-gitattributes.txt
api-grep.txt
api-hash.txt
api-in-core-index.txt
api-index-skel.txt
api-index.sh
api-lockfile.txt close_lock_file(): new function in the lockfile API 2008-01-16 15:35:03 -08:00
api-object-access.txt
api-parse-options.txt
api-path-list.txt
api-quote.txt
api-remote.txt API documentation for remote.h 2008-02-19 00:27:42 -08:00
api-revision-walking.txt
api-run-command.txt run-command: Redirect stderr to a pipe before redirecting stdout to stderr 2008-03-05 12:18:03 -08:00
api-setup.txt
api-strbuf.txt
api-tree-walking.txt
api-xdiff-interface.txt
pack-format.txt Documentation: typofix 2008-01-07 14:02:00 -08:00
pack-heuristics.txt
pack-protocol.txt
racy-git.txt fix doc typos 2008-01-29 22:00:34 -08:00
send-pack-pipeline.txt
shallow.txt
trivial-merge.txt