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

Method add_change

backend/src/git/index.rs:598–613  ·  view source on GitHub ↗
(
        &mut self,
        repo_id: RepoId,
        client: &Client,
        change: &activity::Change,
    )

Source from the content-addressed store, hash-verified

596 }
597
598 pub fn add_change(
599 &mut self,
600 repo_id: RepoId,
601 client: &Client,
602 change: &activity::Change,
603 ) -> Result<()> {
604 for id in change.ids() {
605 let activity = self.id_activity(client, repo_id, id)?;
606 activity.add(change.to_reference());
607 }
608
609 let set = self.repo_changes.entry(repo_id).or_default();
610 set.insert(change.to_owned());
611
612 Ok(())
613 }
614
615 pub fn id_activity(
616 &mut self,

Callers 5

callMethod · 0.45
callMethod · 0.45
persist_repo_topicMethod · 0.45
persist_topicFunction · 0.45
persist_linkFunction · 0.45

Calls 5

idsMethod · 0.80
id_activityMethod · 0.80
to_referenceMethod · 0.80
insertMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected