Commit 36d900d
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 <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent 786a3e4 commit 36d900d
1 file changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
674 | 674 | | |
675 | 675 | | |
676 | 676 | | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
| 677 | + | |
| 678 | + | |
682 | 679 | | |
683 | | - | |
| 680 | + | |
684 | 681 | | |
685 | | - | |
| 682 | + | |
686 | 683 | | |
687 | 684 | | |
688 | 685 | | |
689 | | - | |
690 | 686 | | |
691 | 687 | | |
692 | 688 | | |
| |||
0 commit comments