]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/receive-pack.c
run-command API users: use strvec_push(), not argv construction
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 25 Nov 2021 22:52:21 +0000 (23:52 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 26 Nov 2021 06:15:07 +0000 (22:15 -0800)
commit7f14609e296d5737f34607d4c3e40bb1b063ef04
tree30f74227a1ee7a7b2d5c0570a2a72dc4afaccc21
parent2b7098936c9e91d527aa53b8d4af0b25d7e912b4
run-command API users: use strvec_push(), not argv construction

Change a pattern of hardcoding an "argv" array size, populating it and
assigning to the "argv" member of "struct child_process" to instead
use "strvec_push()" to add data to the "args" member.

As noted in the preceding commit this moves us further towards being
able to remove the "argv" member in a subsequent commit

These callers could have used strvec_pushl(), but moving to
strvec_push() makes the diff easier to read, and keeps the arguments
aligned as before.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
archive-tar.c
builtin/receive-pack.c
daemon.c
diff.c
prompt.c
transport.c