diff --git a/lib/src/repo.rs b/lib/src/repo.rs index 216a2d12a6..078f276624 100644 --- a/lib/src/repo.rs +++ b/lib/src/repo.rs @@ -604,6 +604,26 @@ pub struct RepoLoader { } impl RepoLoader { + pub fn new( + repo_path: PathBuf, + repo_settings: RepoSettings, + store: Arc, + op_store: Arc, + op_heads_store: Arc, + index_store: Arc, + submodule_store: Arc, + ) -> Self { + Self { + repo_path, + repo_settings, + store, + op_store, + op_heads_store, + index_store, + submodule_store, + } + } + pub fn init( user_settings: &UserSettings, repo_path: &Path,