Function commits

Source
pub fn commits(repo: &Repository) -> Result<Commits<'_>, GitError>