Skip to main content

commit_tree

Function commit_tree 

Source
pub fn commit_tree(
    repo: &Path,
    tree_sha: &str,
    parent: Option<&str>,
    message: &str,
) -> Result<String, SyncError>
Expand description

Creates a commit object for a tree and returns its SHA.

Runs git commit-tree <tree> [-p <parent>] -m <message>. The repository must have a committer identity configured (the standard git requirement).