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

Function add_oids_to_set

fetch-pack.c:335–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333}
334
335static void add_oids_to_set(const struct oid_array *array,
336 struct oidset *set)
337{
338 if (!array)
339 return;
340
341 for (size_t i = 0; i < array->nr; i++) {
342 struct object_id *oid = &array->oid[i];
343 if (!odb_has_object(the_repository->objects, oid, 0))
344 die(_("the object %s does not exist"), oid_to_hex(oid));
345
346 oidset_insert(set, oid);
347 }
348}
349
350static int find_common(struct fetch_negotiator *negotiator,
351 struct fetch_pack_args *args,

Callers 3

find_commonFunction · 0.85
do_fetch_pack_v2Function · 0.85
negotiate_using_fetchFunction · 0.85

Calls 4

odb_has_objectFunction · 0.85
oid_to_hexFunction · 0.85
oidset_insertFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected