]> git.ipfire.org Git - thirdparty/git.git/commit - midx.h
pack-bitmap: write multi-pack bitmaps
authorTaylor Blau <me@ttaylorr.com>
Tue, 31 Aug 2021 20:52:24 +0000 (16:52 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Sep 2021 20:56:43 +0000 (13:56 -0700)
commitc528e179662ce1353c51f65e1b5895d02988c78c
tree18b5f23d2aff4b4b8320d2701b9f7a617d7f7798
parent0f533c728418fd3ef6ebcae5240e8df566cdaa72
pack-bitmap: write multi-pack bitmaps

Write multi-pack bitmaps in the format described by
Documentation/technical/bitmap-format.txt, inferring their presence with
the absence of '--bitmap'.

To write a multi-pack bitmap, this patch attempts to reuse as much of
the existing machinery from pack-objects as possible. Specifically, the
MIDX code prepares a packing_data struct that pretends as if a single
packfile has been generated containing all of the objects contained
within the MIDX.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-multi-pack-index.txt
builtin/multi-pack-index.c
midx.c
midx.h