pub fn list_commits( repo: &Path, ref_name: &str, limit: usize, ) -> Result<Vec<GitCommit>>
Return up to limit commits reachable from ref_name.
limit
ref_name
Returns an error if git log fails.
git log