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

Function write_midx_bitmapped_packs

midx-write.c:487–505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487static int write_midx_bitmapped_packs(struct hashfile *f, void *data)
488{
489 struct write_midx_context *ctx = data;
490 size_t i;
491
492 for (i = 0; i < ctx->nr; i++) {
493 struct pack_info *pack = &ctx->info[i];
494 if (pack->expired)
495 continue;
496
497 if (pack->bitmap_pos == BITMAP_POS_UNKNOWN && pack->bitmap_nr)
498 BUG("pack '%s' has no bitmap position, but has %d bitmapped object(s)",
499 pack->pack_name, pack->bitmap_nr);
500
501 hashwrite_be32(f, pack->bitmap_pos);
502 hashwrite_be32(f, pack->bitmap_nr);
503 }
504 return 0;
505}
506
507static int write_midx_oid_fanout(struct hashfile *f,
508 void *data)

Callers

nothing calls this directly

Calls 1

hashwrite_be32Function · 0.85

Tested by

no test coverage detected