commit | 4919bf0354e2a1cfb948c320d45d51319ada30eb | [log] [tgz] |
---|---|---|
author | Shawn O. Pearce <spearce@spearce.org> | Sat Mar 10 03:28:08 2007 -0500 |
committer | Junio C Hamano <junkio@cox.net> | Sun Mar 11 22:49:40 2007 -0700 |
tree | bddf46980c357a1ebcde086a9ff7284465cc6acc | |
parent | ebcb5d16ca911d5e21bb8071c185fb47a0c1fbb3 [diff] |
Teach run_command how to setup a stdin pipe Sometimes callers trying to use run_command to execute a child process will want to setup a pipe or file descriptor to redirect into the child's stdin. This idea is completely stolen from builtin-bundle's fork_with_pipe, written by Johannes Schindelin. All credit (and blame) should lie with Dscho. ;-) Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>