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

Function process_dummy_ref

connect.c:260–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260static int process_dummy_ref(const struct packet_reader *reader)
261{
262 const char *line = reader->line;
263 struct object_id oid;
264 const char *name;
265
266 if (parse_oid_hex_algop(line, &oid, &name, reader->hash_algo))
267 return 0;
268 if (*name != ' ')
269 return 0;
270 name++;
271
272 return oideq(reader->hash_algo->null_oid, &oid) &&
273 !strcmp(name, "capabilities^{}");
274}
275
276static void check_no_capabilities(const char *line, size_t len)
277{

Callers 1

get_remote_headsFunction · 0.85

Calls 1

oideqFunction · 0.85

Tested by

no test coverage detected