(&self)
| 73 | } |
| 74 | |
| 75 | pub fn head_commit(&self) -> Result<Commit<'_>> { |
| 76 | let head = self.head()?; |
| 77 | let commit = head.peel_to_commit()?; |
| 78 | Ok(commit) |
| 79 | } |
| 80 | |
| 81 | pub fn walk_commits(&self) -> Result<impl Iterator<Item = Result<Commit<'_>>>> { |
| 82 | let mut revwalk = self.repo.revwalk()?; |