]> git.ipfire.org Git - thirdparty/git.git/commit - midx.h
multi-pack-index: store local property
authorDerrick Stolee <dstolee@microsoft.com>
Mon, 20 Aug 2018 16:51:55 +0000 (16:51 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 Aug 2018 22:31:39 +0000 (15:31 -0700)
commit2cf489a3bf75d7569c228147c3d9c559f02fd62c
treef511184918a5b657c166aafc17d109759e536953
parent6d68e6a46174746d95373a47ab4ef4f57aa56d22
multi-pack-index: store local property

A pack-file is 'local' if it is stored within the usual object
directory. If it is stored in an alternate, it is non-local.

Pack-files are stored using a 'pack_local' member in the packed_git
struct. Add a similar 'local' member to the multi_pack_index struct
and 'local' parameters to the methods that load and prepare multi-
pack-indexes.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
midx.c
midx.h
packfile.c
t/helper/test-read-midx.c