diff options
author | Taylor Blau <me@ttaylorr.com> | 2024-05-23 17:26:52 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-05-24 11:40:43 -0700 |
commit | 0f81b9cb2c5984ae1b090eb79d139e0a7d9ad8df (patch) | |
tree | ca16fec2de90c29eb4211d180d629b490c2f9c6a /git-svn.perl | |
parent | 79621f3e4151dfe8ef8fdb2800c59dc65f4867e6 (diff) |
pseudo-merge: scaffolding for reads
Implement scaffolding within the new pseudo-merge compilation unit
necessary to use the pseudo-merge API from within the pack-bitmap.c
machinery.
The core of this scaffolding is two-fold:
- The `pseudo_merge` structure itself, which represents an individual
pseudo-merge bitmap. It has fields for both bitmaps, as well as
metadata about its position within the memory-mapped region, and
a few extra bits indicating whether or not it is satisfied, and
which bitmaps(s, if any) have been read, since they are initialized
lazily.
- The `pseudo_merge_map` structure, which holds an array of
pseudo_merges, as well as a pointer to the memory-mapped region
containing the pseudo-merge serialization from within a .bitmap
file.
Note that the `bitmap_index` structure is defined statically within the
pack-bitmap.o compilation unit, so we can't take in a `struct
bitmap_index *`. Instead, wrap the primary components necessary to read
the pseudo-merges in this new structure to avoid exposing the
implementation details of the `bitmap_index` structure.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-svn.perl')
0 files changed, 0 insertions, 0 deletions