Trait git_next_core::git::repository::RepositoryLike

source ·
pub trait RepositoryLike {
    // Required methods
    fn open(&self, gitdir: &GitDir) -> Result<OpenRepository>;
    fn git_clone(&self, repo_details: &RepoDetails) -> Result<OpenRepository>;
}

Required Methods§

source

fn open(&self, gitdir: &GitDir) -> Result<OpenRepository>

Opens the repository.

§Errors

Will return an Err if the repository can’t be opened.

source

fn git_clone(&self, repo_details: &RepoDetails) -> Result<OpenRepository>

Clones the git repository from the remote server.

§Errors

Will return an Err if there are any network connectivity issues connecting with the server.

Implementors§