Skip to content
  • Derrick Stolee's avatar
    packfile: add all_packs list · 0bff5269
    Derrick Stolee authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    If a repo contains a multi-pack-index, then the packed_git list
    does not contain the packfiles that are covered by the multi-pack-index.
    This is important for doing object lookups, abbreviations, and
    approximating object count. However, there are many operations that
    really want to iterate over all packfiles.
    
    Create a new 'all_packs' linked list that contains this list, starting
    with the packfiles in the multi-pack-index and then continuing along
    the packed_git linked list.
    
    Signed-off-by: default avatarDerrick Stolee <dstolee@microsoft.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    0bff5269