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

Method check_can_update

backend/src/git/client.rs:490–495  ·  view source on GitHub ↗
(&self, repo_id: RepoId)

Source from the content-addressed store, hash-verified

488 }
489
490 fn check_can_update(&self, repo_id: RepoId) -> Result<()> {
491 if !self.client.viewer.can_update(repo_id) {
492 return Err(Error::NotFound(format!("not found: {repo_id}")));
493 }
494 Ok(())
495 }
496
497 fn commit_message(&self) -> String {
498 "Add change".to_owned()

Callers 5

mark_deletedMethod · 0.80
remove_linkMethod · 0.80
remove_topicMethod · 0.80
save_linkMethod · 0.80
save_topicMethod · 0.80

Calls 1

can_updateMethod · 0.45

Tested by

no test coverage detected