(
&self,
_timespec: &Timespec,
topic_id: &ExternalId,
)
| 129 | } |
| 130 | |
| 131 | pub fn topic_oid( |
| 132 | &self, |
| 133 | _timespec: &Timespec, |
| 134 | topic_id: &ExternalId, |
| 135 | ) -> Result<Option<git2::Oid>> { |
| 136 | let filename = topic_id.object_filename()?; |
| 137 | let mut path = deque_from_path(&filename); |
| 138 | let reference = self.inner.find_reference("HEAD")?; |
| 139 | let tree = reference.peel_to_tree()?; |
| 140 | let oid = self.path_to_oid(tree, &mut path); |
| 141 | Ok(oid) |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | impl<'repo> TryInto<RepoLink> for git2::Blob<'repo> { |
no test coverage detected