Skip to main content

GitTransport

Trait GitTransport 

Source
pub trait GitTransport: Send + Sync {
    // Required methods
    fn fetch_branch(
        &self,
        repo_path: &Path,
        remote: &str,
        branch: &str,
    ) -> Result<()>;
    fn push_refspec(
        &self,
        repo_path: &Path,
        remote: &str,
        refspec: &str,
    ) -> Result<()>;
    fn push_branch_upstream(
        &self,
        repo_path: &Path,
        remote: &str,
        branch: &str,
    ) -> Result<()>;
    fn commit(
        &self,
        repo_path: &Path,
        message: &str,
        skip_hooks: bool,
    ) -> Result<CommitOutcome>;
}

Required Methods§

Source

fn fetch_branch( &self, repo_path: &Path, remote: &str, branch: &str, ) -> Result<()>

Source

fn push_refspec( &self, repo_path: &Path, remote: &str, refspec: &str, ) -> Result<()>

Source

fn push_branch_upstream( &self, repo_path: &Path, remote: &str, branch: &str, ) -> Result<()>

Source

fn commit( &self, repo_path: &Path, message: &str, skip_hooks: bool, ) -> Result<CommitOutcome>

Implementors§