pub trait GitRepository {
// Required methods
fn get_current_branch(&self) -> Result<String>;
fn branch_exists(&self, name: &str) -> Result<bool>;
}Expand description
A trait for git repository operations.
Required Methods§
Sourcefn get_current_branch(&self) -> Result<String>
fn get_current_branch(&self) -> Result<String>
Get the current branch name.
Sourcefn branch_exists(&self, name: &str) -> Result<bool>
fn branch_exists(&self, name: &str) -> Result<bool>
Check if a branch exists.