| 1564 | } |
| 1565 | |
| 1566 | static void trace2_fetch_info(struct upload_pack_data *data) |
| 1567 | { |
| 1568 | struct json_writer jw = JSON_WRITER_INIT; |
| 1569 | |
| 1570 | jw_object_begin(&jw, 0); |
| 1571 | jw_object_intmax(&jw, "haves", data->have_obj.nr); |
| 1572 | jw_object_intmax(&jw, "wants", data->want_obj.nr); |
| 1573 | jw_object_intmax(&jw, "want-refs", strmap_get_size(&data->wanted_refs)); |
| 1574 | jw_object_intmax(&jw, "depth", data->depth); |
| 1575 | jw_object_intmax(&jw, "shallows", data->shallows.nr); |
| 1576 | jw_object_bool(&jw, "deepen-since", data->deepen_since); |
| 1577 | jw_object_intmax(&jw, "deepen-not", oidset_size(&data->deepen_not)); |
| 1578 | jw_object_bool(&jw, "deepen-relative", data->deepen_relative); |
| 1579 | if (data->filter_options.choice) |
| 1580 | jw_object_string(&jw, "filter", list_object_filter_config_name(data->filter_options.choice)); |
| 1581 | else |
| 1582 | jw_object_null(&jw, "filter"); |
| 1583 | jw_end(&jw); |
| 1584 | |
| 1585 | trace2_data_json("upload-pack", the_repository, "fetch-info", &jw); |
| 1586 | |
| 1587 | jw_release(&jw); |
| 1588 | } |
| 1589 | |
| 1590 | static void process_args(struct packet_reader *request, |
| 1591 | struct upload_pack_data *data) |
no test coverage detected