diff options
author | Derrick Stolee <stolee@gmail.com> | 2018-07-12 21:39:35 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-07-20 20:27:28 +0200 |
commit | 8aac67a174061a0744557a3984a433f926bf5cb3 (patch) | |
tree | 047f3edd9e4c8980408627d983a0bcad94a5996c /packfile.c | |
parent | midx: read objects from multi-pack-index (diff) | |
download | git-8aac67a174061a0744557a3984a433f926bf5cb3.tar.xz git-8aac67a174061a0744557a3984a433f926bf5cb3.zip |
midx: use midx in abbreviation calculations
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'packfile.c')
-rw-r--r-- | packfile.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packfile.c b/packfile.c index bc763d91b9..c0eb5ac885 100644 --- a/packfile.c +++ b/packfile.c @@ -961,6 +961,12 @@ struct packed_git *get_packed_git(struct repository *r) return r->objects->packed_git; } +struct multi_pack_index *get_multi_pack_index(struct repository *r) +{ + prepare_packed_git(r); + return r->objects->multi_pack_index; +} + struct list_head *get_packed_git_mru(struct repository *r) { prepare_packed_git(r); |