diff options
author | Jeff King <peff@peff.net> | 2017-01-06 20:16:24 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-01-09 13:41:33 -0800 |
commit | 2b296c93d49d65303a4ce291225c8755eeab1ff8 (patch) | |
tree | 657d508e1d23cadefe6e01d1d82e83c5ac5ad3fb /run-command.c | |
parent | a274e0a036ea886a31f8b216564ab1b4a3142f6c (diff) | |
download | git-2b296c93d49d65303a4ce291225c8755eeab1ff8.tar.gz |
execv_dashed_external: use child_process struct
When we run a dashed external, we use the one-liner
run_command_v_opt() to do so. Let's switch to using a
child_process struct, which has two advantages:
1. We can drop all of the allocation and cleanup code for
building our custom argv array, and just rely on the
builtin argv_array (at the minor cost of doing a few
extra mallocs).
2. We have access to the complete range of child_process
options, not just the ones that the "_opt()" form can
forward.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'run-command.c')
0 files changed, 0 insertions, 0 deletions