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

Method fetch_link

backend/src/git/client.rs:232–240  ·  view source on GitHub ↗
(&self, repo_id: RepoId, link_id: &ExternalId)

Source from the content-addressed store, hash-verified

230 }
231
232 pub fn fetch_link(&self, repo_id: RepoId, link_id: &ExternalId) -> Option<RepoLink> {
233 match &self.fetch(repo_id, link_id)? {
234 RepoObject::Link(link) => Some(link.to_owned()),
235 other => {
236 println!("expected a link, found: {other:?}");
237 None
238 }
239 }
240 }
241
242 pub fn fetch_all(&self, keys: &[Okey]) -> ObjectBuilders {
243 let mut objects = ObjectBuilders::new();

Callers 6

callMethod · 0.45
make_linkMethod · 0.45
linkMethod · 0.45
linkMethod · 0.45
upsert_linkMethod · 0.45

Calls 1

fetchMethod · 0.45

Tested by

no test coverage detected