pub fn get_commits<P: AsRef<Path>>( repo: P, pathspec: Option<&Vec<String>>, ) -> Result<Vec<Commit>, String>