MCPcopy Index your code
hub / github.com/git/git / protocol_v2_serve_loop

Function protocol_v2_serve_loop

serve.c:356–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356void protocol_v2_serve_loop(struct repository *r, int stateless_rpc)
357{
358 if (!stateless_rpc)
359 protocol_v2_advertise_capabilities(r);
360
361 /*
362 * If stateless-rpc was requested then exit after
363 * a single request/response exchange
364 */
365 if (stateless_rpc) {
366 process_request(r);
367 } else {
368 for (;;)
369 if (process_request(r))
370 break;
371 }
372}

Callers 2

cmd__serve_v2Function · 0.85
cmd_upload_packFunction · 0.85

Calls 2

process_requestFunction · 0.85

Tested by 1

cmd__serve_v2Function · 0.68