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)
| 14 | /// Indexes all files in the working copy, respecting `.gitignore` and |
| 15 | /// `.atomicignore` patterns. The index is stored at `.atomic/content-index/`. |
| 16 | pub 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 | /// |
no test coverage detected