use child_process member "args" instead of string array variable
commit4120294cbf8e434c1de408434842d570eba0e25d
authorRené Scharfe <l.s.r@web.de>
Sun, 30 Oct 2022 11:50:27 +0000 (30 12:50 +0100)
committerTaylor Blau <me@ttaylorr.com>
Sun, 30 Oct 2022 18:04:39 +0000 (30 14:04 -0400)
tree0def81e9ce1e3fea930a331fde52a8079368ec80
parent242aa33de0f18bf09dd147401af9b44cf961d532
use child_process member "args" instead of string array variable

Use run_command() with a struct child_process variable and populate its
"args" member directly instead of building a string array and passing it
to run_command_v_opt().  This avoids the use of magic index numbers and
makes simplifies the possible addition of more arguments in the future.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
builtin/difftool.c
builtin/merge.c
builtin/remote.c
compat/mingw.c
ll-merge.c
t/helper/test-fake-ssh.c