config: create core.multiPackIndex setting
[gitweb.git] / object-store.h
index 485b819f00b7d0aac9450063c017fe59b4b458d7..c2b162489a161f6e3e01aa97dd3b0b81b82ea26d 100644 (file)
@@ -71,6 +71,7 @@ struct packed_git {
        int index_version;
        time_t mtime;
        int pack_fd;
+       int index;              /* for builtin/pack-objects.c */
        unsigned pack_local:1,
                 pack_keep:1,
                 pack_keep_in_core:1,
@@ -83,6 +84,8 @@ struct packed_git {
        char pack_name[FLEX_ARRAY]; /* more */
 };
 
+struct multi_pack_index;
+
 struct raw_object_store {
        /*
         * Path to the repository's object store.
@@ -102,6 +105,13 @@ struct raw_object_store {
         */
        struct oidmap *replace_map;
 
+       /*
+        * private data
+        *
+        * should only be accessed directly by packfile.c and midx.c
+        */
+       struct multi_pack_index *multi_pack_index;
+
        /*
         * private data
         *