Trait git_next_git::repository::open::OpenRepositoryLike
source · pub trait OpenRepositoryLike: Debug + Sync {
// Required methods
fn duplicate(&self) -> Box<dyn OpenRepositoryLike>;
fn remote_branches(&self) -> Result<Vec<BranchName>>;
fn find_default_remote(&self, direction: Direction) -> Option<RemoteUrl>;
fn fetch(&self) -> Result<(), Error>;
fn push(
&self,
repo_details: &RepoDetails,
branch_name: &BranchName,
to_commit: &GitRef,
force: &Force,
) -> Result<()>;
fn commit_log(
&self,
branch_name: &BranchName,
find_commits: &[Commit],
) -> Result<Vec<Commit>>;
fn read_file(
&self,
branch_name: &BranchName,
file_name: &Path,
) -> Result<String>;
}
Required Methods§
fn duplicate(&self) -> Box<dyn OpenRepositoryLike>
fn remote_branches(&self) -> Result<Vec<BranchName>>
fn find_default_remote(&self, direction: Direction) -> Option<RemoteUrl>
fn fetch(&self) -> Result<(), Error>
fn push( &self, repo_details: &RepoDetails, branch_name: &BranchName, to_commit: &GitRef, force: &Force, ) -> Result<()>
sourcefn commit_log(
&self,
branch_name: &BranchName,
find_commits: &[Commit],
) -> Result<Vec<Commit>>
fn commit_log( &self, branch_name: &BranchName, find_commits: &[Commit], ) -> Result<Vec<Commit>>
List of commits in a branch, optionally up-to any specified commit.