pub fn commit(root: &Path, message: &str) -> Result<()>
Commit the index only, using the repository’s configured identity, hooks and signing.