diff options
author | Taylor Blau <me@ttaylorr.com> | 2021-08-31 16:52:24 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-09-01 13:56:43 -0700 |
commit | c528e179662ce1353c51f65e1b5895d02988c78c (patch) | |
tree | 18b5f23d2aff4b4b8320d2701b9f7a617d7f7798 /midx.h | |
parent | 0f533c728418fd3ef6ebcae5240e8df566cdaa72 (diff) | |
download | git-c528e179662ce1353c51f65e1b5895d02988c78c.tar.gz |
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>
Diffstat (limited to 'midx.h')
-rw-r--r-- | midx.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -41,6 +41,7 @@ struct multi_pack_index { #define MIDX_PROGRESS (1 << 0) #define MIDX_WRITE_REV_INDEX (1 << 1) +#define MIDX_WRITE_BITMAP (1 << 2) const unsigned char *get_midx_checksum(struct multi_pack_index *m); char *get_midx_filename(const char *object_dir); |