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

Method can_update

backend/src/git/ext.rs:357–361  ·  view source on GitHub ↗
(&self, write_repo_ids: &RepoIds)

Source from the content-addressed store, hash-verified

355
356impl Topic {
357 pub fn can_update(&self, write_repo_ids: &RepoIds) -> bool {
358 self.repo_topics
359 .iter()
360 .any(|topic| write_repo_ids.include(topic.repo_id))
361 }
362
363 pub fn child_link_ids(&self) -> Vec<ExternalId> {
364 self.repo_topics

Callers 3

check_can_updateMethod · 0.45
viewer_can_updateMethod · 0.45
viewer_can_updateMethod · 0.45

Calls 2

includeMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected