sha1_file: add repository argument to read_info_alternates
[gitweb.git] / object-store.h
index 6a07a14d63b78c18c33f7d3f34b7d1db375c5bee..b53e1259023eecf0151dfe34146f40c96b9f99a3 100644 (file)
@@ -99,6 +99,14 @@ struct raw_object_store {
        /* A most-recently-used ordered version of the packed_git list. */
        struct list_head packed_git_mru;
 
+       /*
+        * A fast, rough count of the number of objects in the repository.
+        * These two fields are not meant for direct access. Use
+        * approximate_object_count() instead.
+        */
+       unsigned long approximate_object_count;
+       unsigned approximate_object_count_valid : 1;
+
        /*
         * Whether packed_git has already been populated with this repository's
         * packs.