Skip to main content

GitCommitProvider

Trait GitCommitProvider 

Source
pub trait GitCommitProvider: Send + Sync {
    // Required methods
    fn commit(&self, project_root: &Path, message: &str) -> Result<CommitInfo>;
    fn reset_to_parent(&self, project_root: &Path) -> Result<()>;
}

Required Methods§

Source

fn commit(&self, project_root: &Path, message: &str) -> Result<CommitInfo>

§Errors

Propagates repository errors.

Source

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

Soft reset to HEAD~1, undoing the last commit while keeping changes staged.

§Errors

Propagates repository errors.

Implementors§