MCPcopy Create free account
hub / github.com/emwalker/digraph / blob_exists

Method blob_exists

backend/src/git/core/mod.rs:188–191  ·  view source on GitHub ↗
(&self, filename: &Path)

Source from the content-addressed store, hash-verified

186 }
187
188 pub fn blob_exists(&self, filename: &Path) -> Result<bool> {
189 let blob = self.find_blob_by_filename(filename)?;
190 Ok(blob.is_some())
191 }
192
193 pub fn change(&self, id: &ExternalId) -> Result<activity::Change> {
194 let result = self.find_blob_by_filename(&id.change_filename()?)?;

Callers 2

loadMethod · 0.80
object_existsMethod · 0.80

Calls 1

find_blob_by_filenameMethod · 0.80

Tested by

no test coverage detected