MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / build_content_index

Function build_content_index

atomic-repository/src/content_search.rs:16–20  ·  view source on GitHub ↗

Build (or rebuild) the content search index for the repository. Indexes all files in the working copy, respecting `.gitignore` and `.atomicignore` patterns. The index is stored at `.atomic/content-index/`.

(repo_root: &Path)

Source from the content-addressed store, hash-verified

14/// Indexes all files in the working copy, respecting `.gitignore` and
15/// `.atomicignore` patterns. The index is stored at `.atomic/content-index/`.
16pub fn build_content_index(repo_root: &Path) -> Result<(), ContentSearchError> {
17 let config = content_config(repo_root);
18 let _index = Index::build(config)?;
19 Ok(())
20}
21
22/// Incrementally update the content index after file changes.
23///

Callers 3

runMethod · 0.85
run_asyncMethod · 0.85
runMethod · 0.85

Calls 1

content_configFunction · 0.85

Tested by

no test coverage detected