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

Method object

backend/src/git/core/mod.rs:232–238  ·  view source on GitHub ↗
(&self, path: &ExternalId)

Source from the content-addressed store, hash-verified

230 }
231
232 pub fn object(&self, path: &ExternalId) -> Result<Option<RepoObject>> {
233 let object = match self.find_blob(path)? {
234 Some(blob) => Some(blob.try_into()?),
235 None => None,
236 };
237 Ok(object)
238 }
239
240 pub fn object_exists(&self, id: &ExternalId) -> Result<bool> {
241 let filename = id.object_filename()?;

Callers 1

fetchMethod · 0.80

Calls 2

find_blobMethod · 0.80
try_intoMethod · 0.45

Tested by

no test coverage detected