cache.h: allow oid_object_info to handle arbitrary repositories
[gitweb.git] / repository.h
index f21fd93f722714617f0b6f2419c25d34a90311de..e6e00f541bdc7f61b08ad881b8d66047cc0f1d02 100644 (file)
@@ -2,9 +2,10 @@
 #define REPOSITORY_H
 
 struct config_set;
+struct git_hash_algo;
 struct index_state;
+struct raw_object_store;
 struct submodule_cache;
-struct git_hash_algo;
 
 struct repository {
        /* Environment */
@@ -21,13 +22,12 @@ struct repository {
        char *commondir;
 
        /*
-        * Path to the repository's object store.
-        * Cannot be NULL after initialization.
+        * Holds any information related to accessing the raw object content.
         */
-       char *objectdir;
+       struct raw_object_store *objects;
 
-       /* Path to extra alternate object database if not NULL */
-       char *alternate_db;
+       /* The store in which the refs are held. */
+       struct ref_store *refs;
 
        /*
         * Path to the repository's graft file.