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

Method token_index

backend/src/git/index.rs:559–566  ·  view source on GitHub ↗
(&self, client: &Client, mode: IndexMode)

Source from the content-addressed store, hash-verified

557 }
558
559 pub fn token_index(&self, client: &Client, mode: IndexMode) -> Result<SearchTokenIndex> {
560 let filename = self.index_filename(IndexType::Search)?;
561 match mode {
562 IndexMode::Replace => Ok(SearchTokenIndex::new(&filename)),
563 IndexMode::ReadOnly => client.fetch_token_index(self.repo_id, &filename),
564 IndexMode::Update => client.fetch_token_index(self.repo_id, &filename),
565 }
566 }
567}
568
569pub trait SaveChangesForPrefix {

Callers 2

search_token_indexMethod · 0.80
appears_inMethod · 0.80

Calls 2

index_filenameMethod · 0.80
fetch_token_indexMethod · 0.80

Tested by

no test coverage detected