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

Method remove_synonyms

backend/src/git/index.rs:727–745  ·  view source on GitHub ↗
(
        &mut self,
        client: &Client,
        repo_id: RepoId,
        id: &ExternalId,
        topic: &RepoTopic,
    )

Source from the content-addressed store, hash-verified

725 }
726
727 pub fn remove_synonyms(
728 &mut self,
729 client: &Client,
730 repo_id: RepoId,
731 id: &ExternalId,
732 topic: &RepoTopic,
733 ) -> Result<()> {
734 self.synonym_indexes(
735 client,
736 repo_id,
737 topic.metadata.synonyms().iter(),
738 |index, token, name| {
739 index.remove(id, token.to_owned(), name)?;
740 Ok(())
741 },
742 )?;
743
744 Ok(())
745 }
746
747 pub fn files(&self) -> Result<Vec<(RepoId, PathBuf, String)>> {
748 let mut files = vec![];

Callers 1

remove_topicMethod · 0.80

Calls 4

synonym_indexesMethod · 0.80
iterMethod · 0.45
synonymsMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected