Commit a923e05
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>1 parent c7191fa commit a923e05
1 file changed
+9
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | 61 | | |
74 | 62 | | |
75 | 63 | | |
76 | 64 | | |
77 | 65 | | |
78 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
79 | 70 | | |
80 | | - | |
| 71 | + | |
81 | 72 | | |
82 | | - | |
| 73 | + | |
83 | 74 | | |
84 | | - | |
| 75 | + | |
85 | 76 | | |
86 | | - | |
| 77 | + | |
87 | 78 | | |
88 | | - | |
89 | | - | |
| 79 | + | |
90 | 80 | | |
91 | 81 | | |
92 | 82 | | |
| |||
0 commit comments