MCPcopy Create free account
hub / github.com/git/git / trace2_fetch_info

Function trace2_fetch_info

upload-pack.c:1566–1588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1564}
1565
1566static 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
1590static void process_args(struct packet_reader *request,
1591 struct upload_pack_data *data)

Callers 1

process_argsFunction · 0.85

Calls 10

jw_object_beginFunction · 0.85
jw_object_intmaxFunction · 0.85
strmap_get_sizeFunction · 0.85
jw_object_boolFunction · 0.85
oidset_sizeFunction · 0.85
jw_object_stringFunction · 0.85
jw_object_nullFunction · 0.85
jw_endFunction · 0.85
jw_releaseFunction · 0.85

Tested by

no test coverage detected