Skip to content
  • Taylor Blau's avatar
    pack-bitmap: enable reuse from all bitmapped packs · af626ac0
    Taylor Blau authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    Now that both the pack-bitmap and pack-objects code are prepared to
    handle marking and using objects from multiple bitmapped packs for
    verbatim reuse, allow marking objects from all bitmapped packs as
    eligible for reuse.
    
    Within the `reuse_partial_packfile_from_bitmap()` function, we no longer
    only mark the pack whose first object is at bit position zero for reuse,
    and instead mark any pack contained in the MIDX as a reuse candidate.
    
    Provide a handful of test cases in a new script (t5332) exercising
    interesting behavior for multi-pack reuse to ensure that we performed
    all of the previous steps correctly.
    
    Signed-off-by: default avatarTaylor Blau <me@ttaylorr.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    af626ac0