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

Function process_haves_and_send_acks

upload-pack.c:1710–1726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1708}
1709
1710static int process_haves_and_send_acks(struct upload_pack_data *data)
1711{
1712 int ret = 0;
1713
1714 if (data->done) {
1715 ret = 1;
1716 } else if (send_acks(data, &data->have_obj)) {
1717 packet_writer_delim(&data->writer);
1718 ret = 1;
1719 } else {
1720 /* Add Flush */
1721 packet_writer_flush(&data->writer);
1722 ret = 0;
1723 }
1724
1725 return ret;
1726}
1727
1728static void send_wanted_ref_info(struct upload_pack_data *data)
1729{

Callers 1

upload_pack_v2Function · 0.85

Calls 3

send_acksFunction · 0.85
packet_writer_delimFunction · 0.85
packet_writer_flushFunction · 0.85

Tested by

no test coverage detected