send-pack: use internal argv_array of struct child_process
authorRené Scharfe <l.s.r@web.de>
Fri, 22 Dec 2017 08:14:10 +0000 (09:14 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 Dec 2017 21:33:53 +0000 (13:33 -0800)
commita923e05944271e2aa887721a1d2f24bb418eeca7
tree5a0b8779212932ce2172e1ebde11003bc4c9cc88
parentc7191fa51011f9ae03686269a16ce0c03e97afec
send-pack: use internal argv_array of struct child_process

Avoid a magic number of NULL placeholder values and a magic index by
constructing the command line for pack-objects using the embedded
argv_array of the child_process.  The resulting code is shorter and
easier to extend.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
send-pack.c