(&self, _timespec: &Timespec)
| 95 | } |
| 96 | |
| 97 | pub fn commit_oid(&self, _timespec: &Timespec) -> Result<git2::Oid> { |
| 98 | let reference = self.inner.find_reference("HEAD")?; |
| 99 | let commit = reference.peel_to_commit()?; |
| 100 | Ok(commit.id()) |
| 101 | } |
| 102 | |
| 103 | pub fn duplicate(&self) -> Result<Self> { |
| 104 | Self::open(self.path.to_owned()) |