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

Function parse_oid

protocol-caps.c:21–31  ·  view source on GitHub ↗

* Parses oids from the given line and collects them in the given * oid_str_list. Returns 1 if parsing was successful and 0 otherwise. */

Source from the content-addressed store, hash-verified

19 * oid_str_list. Returns 1 if parsing was successful and 0 otherwise.
20 */
21static int parse_oid(const char *line, struct string_list *oid_str_list)
22{
23 const char *arg;
24
25 if (!skip_prefix(line, "oid ", &arg))
26 return 0;
27
28 string_list_append(oid_str_list, arg);
29
30 return 1;
31}
32
33/*
34 * Validates and send requested info back to the client. Any errors detected

Callers 1

cap_object_infoFunction · 0.85

Calls 1

string_list_appendFunction · 0.70

Tested by

no test coverage detected