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

Method remove_link

backend/src/git/client.rs:550–566  ·  view source on GitHub ↗
(
        &mut self,
        repo_id: RepoId,
        link_id: &ExternalId,
        link: &RepoLink,
    )

Source from the content-addressed store, hash-verified

548 }
549
550 pub fn remove_link(
551 &mut self,
552 repo_id: RepoId,
553 link_id: &ExternalId,
554 link: &RepoLink,
555 ) -> Result<()> {
556 self.check_can_update(repo_id)?;
557
558 let searches = self.client.link_searches(Some(link.to_owned()))?;
559 self.indexer.remove_searches(
560 &self.client,
561 repo_id,
562 &link.to_search_entry(),
563 searches.iter(),
564 )?;
565 self.remove(repo_id, link_id)
566 }
567
568 pub fn remove_topic(
569 &mut self,

Callers 1

callMethod · 0.80

Calls 6

check_can_updateMethod · 0.80
link_searchesMethod · 0.80
remove_searchesMethod · 0.80
to_search_entryMethod · 0.80
iterMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected