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

Method mark_deleted

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

Source from the content-addressed store, hash-verified

529 }
530
531 pub fn mark_deleted(&mut self, repo_id: RepoId, id: &ExternalId) -> Result<()> {
532 self.check_can_update(repo_id)?;
533
534 let activity = self.client.fetch_activity(repo_id, id, usize::MAX)?;
535
536 for mut change in activity {
537 change.mark_deleted(id);
538 self.save_change(repo_id, &change)?;
539 }
540
541 Ok(())
542 }
543
544 pub fn remove(&mut self, repo_id: RepoId, id: &ExternalId) -> Result<()> {
545 let filename = id.object_filename()?;

Callers 2

callMethod · 0.45
callMethod · 0.45

Calls 3

check_can_updateMethod · 0.80
save_changeMethod · 0.80
fetch_activityMethod · 0.45

Tested by

no test coverage detected