diff options
| author | Taylor Blau <me@ttaylorr.com> | 2024-05-23 17:26:32 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-05-24 11:40:42 -0700 |
| commit | 245a7f2e01dc86baa08ceb70937585c6389cb9db (patch) | |
| tree | a22b3ee1ac04c1fa6b445ab0818279cf560907be /pack-bitmap.h | |
| parent | 0d41b18317ece0d46e2cfdf1d99ba2b2166c0248 (diff) | |
| download | git-245a7f2e01dc86baa08ceb70937585c6389cb9db.tar.xz | |
pack-bitmap: implement `bitmap_writer_has_bitmapped_object_id()`
Prepare to implement pseudo-merge bitmap selection by implementing a
necessary new function, `bitmap_writer_has_bitmapped_object_id()`.
This function returns whether or not the bitmap_writer selected the
given object ID for bitmapping. This will allow the pseudo-merge
machinery to reject candidates for pseudo-merges if they have already
been selected as an ordinary bitmap tip.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-bitmap.h')
| -rw-r--r-- | pack-bitmap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pack-bitmap.h b/pack-bitmap.h index 6937a0f090..e175f28e0d 100644 --- a/pack-bitmap.h +++ b/pack-bitmap.h @@ -125,6 +125,8 @@ void bitmap_writer_build_type_index(struct bitmap_writer *writer, struct packing_data *to_pack, struct pack_idx_entry **index, uint32_t index_nr); +int bitmap_writer_has_bitmapped_object_id(struct bitmap_writer *writer, + const struct object_id *oid); uint32_t *create_bitmap_mapping(struct bitmap_index *bitmap_git, struct packing_data *mapping); int rebuild_bitmap(const uint32_t *reposition, |
