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.