difftool: prepare "struct child_process" in cmd_difftool()
commitec3cc27ab06c0b7ebaf9aee3eaa6e35719eef8da
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 13 Sep 2021 03:35:37 +0000 (13 05:35 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Sep 2021 06:27:38 +0000 (12 23:27 -0700)
treefc201bae8c1f17de6ccb44600d80cda59b354532
parent225bc32a989d7a22fa6addafd4ce7dcd04675dbf
difftool: prepare "struct child_process" in cmd_difftool()

Move the preparation of the "struct child_process" from run_dir_diff()
to its only caller, cmd_difftool(). This is in preparation for
migrating run_file_diff() to using the run_command() API directly, and
to move more of the shared setup of the two to cmd_difftool().

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/difftool.c