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 Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-allocation-growing.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-builtin.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-decorate.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-diff.txt Correct name of diff_flush() in API documentation 2008-02-28 13:35:09 -08:00
api-directory-listing.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-gitattributes.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-grep.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-hash.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-in-core-index.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-index-skel.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-index.sh Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-lockfile.txt close_lock_file(): new function in the lockfile API 2008-01-16 15:35:03 -08:00
api-object-access.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-parse-options.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-path-list.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-quote.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-remote.txt API documentation for remote.h 2008-02-19 00:27:42 -08:00
api-revision-walking.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
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 Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-strbuf.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-tree-walking.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-xdiff-interface.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
pack-format.txt Documentation: typofix 2008-01-07 14:02:00 -08:00
pack-heuristics.txt Assorted typo fixes 2006-07-09 02:42:41 -07:00
pack-protocol.txt Documentation: fix missing links to git(7) 2005-12-12 23:55:09 -08:00
racy-git.txt fix doc typos 2008-01-29 22:00:34 -08:00
send-pack-pipeline.txt Update send-pack pipeline documentation. 2007-01-01 14:35:16 -08:00
shallow.txt Provide some technical documentation for shallow clones 2007-03-19 22:19:29 -07:00
trivial-merge.txt [PATCH] Finish documenting trivial merge rules 2005-09-24 22:05:55 -07:00