]> git.ipfire.org Git - thirdparty/git.git/commit
difftool: use "env_array" to simplify memory management
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 25 Nov 2021 22:52:23 +0000 (23:52 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 26 Nov 2021 06:15:08 +0000 (22:15 -0800)
commit26a15355d60a0a5be08250512c05e1447036dce3
treeeb0758b28f4cf4c287dcf98af93ca7a0a9da4707
parentd3b2159712019a06f1f495d3e42bd6aa6e76e848
difftool: use "env_array" to simplify memory management

Amend code added in 03831ef7b50 (difftool: implement the functionality
in the builtin, 2017-01-19) to use the "env_array" in the
run_command.[ch] API. Now we no longer need to manage our own
"index_env" buffer.

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