Skip to main content

CommitWriter

Trait CommitWriter 

Source
pub trait CommitWriter {
    // Required method
    fn commit_tree(
        &self,
        tree: &str,
        parent: &str,
        message: &[u8],
        identity: CommitIdentity<'_>,
    ) -> Result<String, EngineError>;
}
Expand description

commit-tree. Separate from IndexSession because it does not touch an index — it takes a tree oid already written.

Required Methods§

Source

fn commit_tree( &self, tree: &str, parent: &str, message: &[u8], identity: CommitIdentity<'_>, ) -> Result<String, EngineError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§