pack: move prepare_packed_git_run_once to object store
[gitweb.git] / object-store.h
index c687ab7587fb7f71128067f47f757c6b8b9091a5..6a07a14d63b78c18c33f7d3f34b7d1db375c5bee 100644 (file)
@@ -98,6 +98,12 @@ struct raw_object_store {
        struct packed_git *packed_git;
        /* A most-recently-used ordered version of the packed_git list. */
        struct list_head packed_git_mru;
+
+       /*
+        * Whether packed_git has already been populated with this repository's
+        * packs.
+        */
+       unsigned packed_git_initialized : 1;
 };
 
 struct raw_object_store *raw_object_store_new(void);