summaryrefslogtreecommitdiff
path: root/send-pack.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2017-12-22 11:56:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-12-22 21:33:48 (GMT)
commitc7191fa51011f9ae03686269a16ce0c03e97afec (patch)
tree5ae00afc22b701edc6268ab53c19e6198de273ad /send-pack.c
parent936d1b989416a95f593bf81ccae8ac62cd83f279 (diff)
downloadgit-c7191fa51011f9ae03686269a16ce0c03e97afec.zip
git-c7191fa51011f9ae03686269a16ce0c03e97afec.tar.gz
git-c7191fa51011f9ae03686269a16ce0c03e97afec.tar.bz2
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>
Diffstat (limited to 'send-pack.c')
0 files changed, 0 insertions, 0 deletions