Commit c7191fa
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>1 parent 936d1b9 commit c7191fa
1 file changed
+3
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2025 | 2025 | | |
2026 | 2026 | | |
2027 | 2027 | | |
2028 | | - | |
2029 | 2028 | | |
2030 | 2029 | | |
2031 | 2030 | | |
| |||
2041 | 2040 | | |
2042 | 2041 | | |
2043 | 2042 | | |
2044 | | - | |
2045 | | - | |
2046 | | - | |
2047 | | - | |
2048 | | - | |
2049 | | - | |
2050 | | - | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
2051 | 2046 | | |
2052 | 2047 | | |
2053 | 2048 | | |
| |||
0 commit comments