t1006: test cat-file --batch-all-objects with duplicates
[gitweb.git] / repository.h
index 6d199819905f2a9f8334e496f2caf35a3546420c..b9413be50cfd0c9d17865220c3db5eb16024187e 100644 (file)
@@ -38,6 +38,11 @@ struct repository {
        /* The store in which the refs are held. */
        struct ref_store *refs;
 
+       /*
+        * Contains path to often used file names.
+        */
+       struct path_cache cached_paths;
+
        /*
         * Path to the repository's graft file.
         * Cannot be NULL after initialization.
@@ -109,6 +114,9 @@ extern void repo_set_gitdir(struct repository *repo,
 extern void repo_set_worktree(struct repository *repo, const char *path);
 extern void repo_set_hash_algo(struct repository *repo, int algo);
 extern void initialize_the_repository(void);
+extern int repo_init(struct repository *r,
+                    const char *gitdir,
+                    const char *worktree);
 extern int repo_submodule_init(struct repository *submodule,
                               struct repository *superproject,
                               const char *path);