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

Function receive_client_capability

serve.c:241–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241static int receive_client_capability(struct repository *r, const char *key)
242{
243 const char *value;
244 const struct protocol_capability *c = get_capability(key, &value);
245
246 if (!c || c->command || !c->advertise(r, NULL))
247 return 0;
248
249 if (c->receive)
250 c->receive(r, value);
251 return 1;
252}
253
254static int parse_command(struct repository *r, const char *key, struct protocol_capability **command)
255{

Callers 1

process_requestFunction · 0.85

Calls 1

get_capabilityFunction · 0.85

Tested by

no test coverage detected