]> git.ipfire.org Git - thirdparty/git.git/commit - run-command.h
replace and remove run_command_v_opt()
authorRené Scharfe <l.s.r@web.de>
Sun, 30 Oct 2022 11:55:06 +0000 (12:55 +0100)
committerTaylor Blau <me@ttaylorr.com>
Sun, 30 Oct 2022 18:04:51 +0000 (14:04 -0400)
commitddbb47fde9b6d8cd9f3728847a378f634318cfb1
treeef093554b4ce4914edb7a0a0ace39187347bb344
parentef249b398e26dd76f473ce83a35219c520f6fdbe
replace and remove run_command_v_opt()

Replace the remaining calls of run_command_v_opt() with run_command()
calls and explict struct child_process variables.  This is more verbose,
but not by much overall.  The code becomes more flexible, e.g. it's easy
to extend to conditionally add a new argument.

Then remove the now unused function and its own flag names, simplifying
the run-command API.

Suggested-by: Jeff King <peff@peff.net>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
13 files changed:
bisect.c
builtin/am.c
builtin/bisect--helper.c
builtin/clone.c
builtin/difftool.c
builtin/fetch.c
builtin/gc.c
builtin/merge-index.c
run-command.c
run-command.h
sequencer.c
shell.c
t/helper/test-trace2.c