]> git.ipfire.org Git - thirdparty/git.git/commit
pack-bitmap: implement `bitmap_writer_has_bitmapped_object_id()`
authorTaylor Blau <me@ttaylorr.com>
Thu, 23 May 2024 21:26:32 +0000 (17:26 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 24 May 2024 18:40:42 +0000 (11:40 -0700)
commit245a7f2e01dc86baa08ceb70937585c6389cb9db
treea22b3ee1ac04c1fa6b445ab0818279cf560907be
parent0d41b18317ece0d46e2cfdf1d99ba2b2166c0248
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>
pack-bitmap-write.c
pack-bitmap.h