Skip to main content

create_commit

Function create_commit 

Source
pub fn create_commit(repo: &Repository, message: &str) -> Result<CommitInfo>
Expand description

Commit the currently staged (index) changes with the given message.

Uses the repository’s default signature (user.name / user.email). Returns the newly created CommitInfo.