# Function open_repo

Source

    pub fn open_repo(
        repo_path: &Path,
        config_overrides: Vec<BString>,
        purpose: OpenMode,
    ) -> Result<Repository, Error>

Expand description

Produce a repository with everything pre-configured according to `config`. Most notably this includes transport configuration. Knowing its `purpose` helps to optimize the way we open the repository. Use `config_overrides` to configure the new repository.