Skip to main content

Committer

Trait Committer 

Source
pub trait Committer {
    // Required method
    fn commit(
        &self,
        message: &str,
        opts: Option<&CommitOptions>,
    ) -> AppResult<Oid>;
}
Expand description

Creates new commits from the repository index.

Required Methods§

Source

fn commit(&self, message: &str, opts: Option<&CommitOptions>) -> AppResult<Oid>

Creates a commit from the current index state and returns its object ID.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§