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

Method exists

backend/src/git/client.rs:167–173  ·  view source on GitHub ↗
(&self, repo_id: RepoId, id: &ExternalId)

Source from the content-addressed store, hash-verified

165 }
166
167 pub fn exists(&self, repo_id: RepoId, id: &ExternalId) -> Result<bool> {
168 if !self.viewer.can_read(repo_id) {
169 return Ok(false);
170 }
171 let repo = self.view(repo_id)?;
172 repo.object_exists(id)
173 }
174
175 pub fn fetch(&self, repo_id: RepoId, id: &ExternalId) -> Option<RepoObject> {
176 if !self.viewer.can_read(repo_id) {

Callers 5

loadMethod · 0.80
callMethod · 0.80
make_linkMethod · 0.80
intersectionMethod · 0.80
mainFunction · 0.80

Calls 3

can_readMethod · 0.80
object_existsMethod · 0.80
viewMethod · 0.45

Tested by

no test coverage detected