pub struct WriteMultiPackIndexOptions {
pub preferred_pack_idx: Option<u32>,
pub preferred_pack_name: Option<String>,
pub pack_names_subset_ordered: Option<Vec<String>>,
pub write_bitmap_placeholders: bool,
pub incremental: bool,
pub write_rev_placeholder: bool,
}Expand description
Options for writing a multi-pack index (extension of the simple writer).
Fields§
§preferred_pack_idx: Option<u32>When set, objects also present in other packs are taken from this pack
(pack_names index in the sorted name list).
preferred_pack_name: Option<String>Basename of the preferred pack (e.g. pack-abc.idx or pack-abc.pack); resolved against
the working pack name list after optional subset filtering.
pack_names_subset_ordered: Option<Vec<String>>If set, only these pack-*.idx basenames are included, in this order (Git --stdin-packs).
write_bitmap_placeholders: boolWhen true, append RIDX + empty BTMP chunks so test-tool read-midx --bitmap succeeds.
incremental: boolWhen true, write a new layer in multi-pack-index.d/ and extend the chain file
instead of replacing pack/multi-pack-index.
write_rev_placeholder: boolWhen true with Self::write_bitmap_placeholders, also create an empty .rev
sidecar (Git GIT_TEST_MIDX_WRITE_REV compatibility).
Trait Implementations§
Source§impl Clone for WriteMultiPackIndexOptions
impl Clone for WriteMultiPackIndexOptions
Source§fn clone(&self) -> WriteMultiPackIndexOptions
fn clone(&self) -> WriteMultiPackIndexOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more