http: use internal argv_array of struct child_process
authorRené Scharfe <l.s.r@web.de>
Fri, 22 Dec 2017 11:56:59 +0000 (12:56 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 Dec 2017 21:33:48 +0000 (13:33 -0800)
commitc7191fa51011f9ae03686269a16ce0c03e97afec
tree5ae00afc22b701edc6268ab53c19e6198de273ad
parent936d1b989416a95f593bf81ccae8ac62cd83f279
http: use internal argv_array of struct child_process

Avoid a strangely magic array size (it's slightly too big) and explicit
index numbers by building the command line for index-pack using the
embedded argv_array of the child_process.  Add the flag -o and its
argument with argv_array_pushl() to make it obvious that they belong
together.  The resulting code is shorter and easier to extend.

Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http.c