Skip to main content

GitStatusProvider

Trait GitStatusProvider 

Source
pub trait GitStatusProvider: Send + Sync {
    // Required methods
    fn is_working_tree_clean(&self, project_root: &Path) -> Result<bool>;
    fn current_branch(&self, project_root: &Path) -> Result<String>;
    fn remote_url(&self, project_root: &Path) -> Result<Option<String>>;
}

Required Methods§

Source

fn is_working_tree_clean(&self, project_root: &Path) -> Result<bool>

§Errors

Propagates repository errors.

Source

fn current_branch(&self, project_root: &Path) -> Result<String>

§Errors

Propagates repository errors.

Source

fn remote_url(&self, project_root: &Path) -> Result<Option<String>>

§Errors

Propagates repository errors.

Implementors§