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

Method change

backend/src/git/core/mod.rs:193–199  ·  view source on GitHub ↗
(&self, id: &ExternalId)

Source from the content-addressed store, hash-verified

191 }
192
193 pub fn change(&self, id: &ExternalId) -> Result<activity::Change> {
194 let result = self.find_blob_by_filename(&id.change_filename()?)?;
195 match result {
196 Some(blob) => Ok(blob.try_into()?),
197 None => Err(Error::NotFound(format!("not found: {id}"))),
198 }
199 }
200
201 pub fn duplicate(&self) -> Result<Self> {
202 Ok(Self {

Callers 1

fetch_activityMethod · 0.45

Calls 3

find_blob_by_filenameMethod · 0.80
change_filenameMethod · 0.80
try_intoMethod · 0.45

Tested by

no test coverage detected