| 125 | }; |
| 126 | |
| 127 | static void upload_pack_data_init(struct upload_pack_data *data) |
| 128 | { |
| 129 | struct string_list symref = STRING_LIST_INIT_DUP; |
| 130 | struct strmap wanted_refs = STRMAP_INIT; |
| 131 | struct strvec hidden_refs = STRVEC_INIT; |
| 132 | struct object_array want_obj = OBJECT_ARRAY_INIT; |
| 133 | struct object_array have_obj = OBJECT_ARRAY_INIT; |
| 134 | struct object_array shallows = OBJECT_ARRAY_INIT; |
| 135 | struct oidset deepen_not = OID_ARRAY_INIT; |
| 136 | struct string_list uri_protocols = STRING_LIST_INIT_DUP; |
| 137 | struct object_array extra_edge_obj = OBJECT_ARRAY_INIT; |
| 138 | struct string_list allowed_filters = STRING_LIST_INIT_DUP; |
| 139 | |
| 140 | memset(data, 0, sizeof(*data)); |
| 141 | data->symref = symref; |
| 142 | data->wanted_refs = wanted_refs; |
| 143 | data->hidden_refs = hidden_refs; |
| 144 | data->want_obj = want_obj; |
| 145 | data->have_obj = have_obj; |
| 146 | data->shallows = shallows; |
| 147 | data->deepen_not = deepen_not; |
| 148 | data->uri_protocols = uri_protocols; |
| 149 | data->extra_edge_obj = extra_edge_obj; |
| 150 | data->allowed_filters = allowed_filters; |
| 151 | data->allow_filter_fallback = 1; |
| 152 | data->tree_filter_max_depth = ULONG_MAX; |
| 153 | packet_writer_init(&data->writer, 1); |
| 154 | list_objects_filter_init(&data->filter_options); |
| 155 | |
| 156 | data->keepalive = 5; |
| 157 | data->advertise_sid = 0; |
| 158 | } |
| 159 | |
| 160 | static void upload_pack_data_clear(struct upload_pack_data *data) |
| 161 | { |
no test coverage detected