Skip to main content

GitRepository

Trait GitRepository 

Source
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§

Source

fn get_current_branch(&self) -> Result<String>

Get the current branch name.

Source

fn branch_exists(&self, name: &str) -> Result<bool>

Check if a branch exists.

Implementors§