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

Function get_protocol_http_header

remote-curl.c:397–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397static int get_protocol_http_header(enum protocol_version version,
398 struct strbuf *header)
399{
400 if (version > 0) {
401 strbuf_addf(header, GIT_PROTOCOL_HEADER ": version=%d",
402 version);
403
404 return 1;
405 }
406
407 return 0;
408}
409
410static void check_smart_http(struct discovery *d, const char *service,
411 struct strbuf *type)

Callers 3

discover_refsFunction · 0.85
rpc_serviceFunction · 0.85
stateless_connectFunction · 0.85

Calls 1

strbuf_addfFunction · 0.85

Tested by

no test coverage detected