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

Function fetch_indices

http-walker.c:401–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399}
400
401static int fetch_indices(struct walker *walker, struct alt_base *repo)
402{
403 int ret;
404
405 if (repo->got_indices)
406 return 0;
407
408 if (walker->get_verbosely)
409 fprintf(stderr, "Getting pack list for %s\n", repo->base);
410
411 switch (http_get_info_packs(repo->base, &repo->packs)) {
412 case HTTP_OK:
413 case HTTP_MISSING_TARGET:
414 repo->got_indices = 1;
415 ret = 0;
416 break;
417 default:
418 repo->got_indices = 0;
419 ret = -1;
420 }
421
422 return ret;
423}
424
425static int http_fetch_pack(struct walker *walker, struct alt_base *repo,
426 const struct object_id *oid)

Callers 1

http_fetch_packFunction · 0.70

Calls 1

http_get_info_packsFunction · 0.85

Tested by

no test coverage detected