summaryrefslogtreecommitdiff
path: root/packfile.c
diff options
context:
space:
mode:
authorDerrick Stolee <stolee@gmail.com>2018-07-12 15:39:35 -0400
committerJunio C Hamano <gitster@pobox.com>2018-07-20 11:27:28 -0700
commit8aac67a174061a0744557a3984a433f926bf5cb3 (patch)
tree047f3edd9e4c8980408627d983a0bcad94a5996c /packfile.c
parent3715a6335c37367b4240b6bfa842dc64dedee34d (diff)
downloadgit-8aac67a174061a0744557a3984a433f926bf5cb3.tar.gz
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.c6
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);