MCPcopy Index your code
hub / github.com/emwalker/digraph / topic_path

Method topic_path

backend/src/git/client.rs:315–327  ·  view source on GitHub ↗
(&self, repo_id: RepoId, topic_id: &ExternalId)

Source from the content-addressed store, hash-verified

313 }
314
315 pub fn topic_path(&self, repo_id: RepoId, topic_id: &ExternalId) -> Result<Option<TopicPath>> {
316 let topic_oid = self.repo(repo_id)?.topic_oid(&self.timespec, topic_id)?;
317
318 if let Some(commit) = topic_oid {
319 return Ok(Some(TopicPath {
320 topic_oid: commit,
321 topic_id: topic_id.to_owned(),
322 repo_id,
323 }));
324 }
325
326 Ok(None)
327 }
328
329 fn repo(&self, repo_id: RepoId) -> Result<core::Repo> {
330 core::Repo::ensure(&self.root, repo_id)

Callers 2

cycle_existsMethod · 0.80
intersectionMethod · 0.80

Calls 2

topic_oidMethod · 0.80
repoMethod · 0.45

Tested by

no test coverage detected