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

Function parse_protocol_version

protocol.c:9–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include "trace2.h"
8
9static enum protocol_version parse_protocol_version(const char *value)
10{
11 if (!strcmp(value, "0"))
12 return protocol_v0;
13 else if (!strcmp(value, "1"))
14 return protocol_v1;
15 else if (!strcmp(value, "2"))
16 return protocol_v2;
17 else
18 return protocol_unknown_version;
19}
20
21enum protocol_version get_protocol_version_config(void)
22{

Calls

no outgoing calls

Tested by

no test coverage detected