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

Function fetch

http-walker.c:554–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

552}
553
554static int fetch(struct walker *walker, const struct object_id *oid)
555{
556 struct walker_data *data = walker->data;
557 struct alt_base *altbase = data->alt;
558
559 if (!fetch_object(walker, oid))
560 return 0;
561 while (altbase) {
562 if (!http_fetch_pack(walker, altbase, oid))
563 return 0;
564 fetch_alternates(walker, data->alt->base);
565 altbase = altbase->next;
566 }
567 return error("Unable to find %s under %s", oid_to_hex(oid),
568 data->alt->base);
569}
570
571static int fetch_ref(struct walker *walker, struct ref *ref)
572{

Callers

nothing calls this directly

Calls 5

fetch_objectFunction · 0.85
http_fetch_packFunction · 0.85
fetch_alternatesFunction · 0.85
errorFunction · 0.85
oid_to_hexFunction · 0.85

Tested by

no test coverage detected