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

Function determine_protocol_version_client

protocol.c:85–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85enum protocol_version determine_protocol_version_client(const char *server_response)
86{
87 enum protocol_version version = protocol_v0;
88
89 if (skip_prefix(server_response, "version ", &server_response)) {
90 version = parse_protocol_version(server_response);
91
92 if (version == protocol_unknown_version)
93 die("server is speaking an unknown protocol");
94 if (version == protocol_v0)
95 die("protocol error: server explicitly said version 0");
96 }
97
98 return version;
99}

Callers 1

discover_versionFunction · 0.85

Calls 2

parse_protocol_versionFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected