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

Function parse_protocol_config

transport.c:1072–1083  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1070};
1071
1072static enum protocol_allow_config parse_protocol_config(const char *key,
1073 const char *value)
1074{
1075 if (!strcasecmp(value, "always"))
1076 return PROTOCOL_ALLOW_ALWAYS;
1077 else if (!strcasecmp(value, "never"))
1078 return PROTOCOL_ALLOW_NEVER;
1079 else if (!strcasecmp(value, "user"))
1080 return PROTOCOL_ALLOW_USER_ONLY;
1081
1082 die(_("unknown value for config '%s': %s"), key, value);
1083}
1084
1085static enum protocol_allow_config get_protocol_config(const char *type)
1086{

Callers 1

get_protocol_configFunction · 0.85

Calls 1

dieFunction · 0.70

Tested by

no test coverage detected