]> git.99rst.org Git - git.git/commit
difftool: add env vars directly in run_file_diff()
authorRené Scharfe <redacted>
Sun, 26 May 2024 20:16:50 +0000 (22:16 +0200)
committerJunio C Hamano <redacted>
Mon, 27 May 2024 15:55:59 +0000 (08:55 -0700)
commit36d900d2b0b861d4cb359ddbaa904de90336eb71
treeae28f2c8a3eb46e8ef8cfe5ab720235a3c130a76
parent786a3e4b8d754d2b14b1208b98eeb0a554ef19a8
difftool: add env vars directly in run_file_diff()

Add the environment variables of the child process directly using
strvec_push() instead of building an array out of them and then adding
that using strvec_pushv().  The new code is shorter and avoids magic
array index values and fragile array padding.

Signed-off-by: René Scharfe <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/difftool.c
git clone https://git.99rst.org/PROJECT