Load ignore rules for a repository. This loads rules from the global ignore file and from the repository's `.gitignore`, `.ignore`, and `.atomicignore`. Missing files are silently ignored (not an error). Honoring `.gitignore` matters because it is what virtually every project already uses to exclude build artifacts. Without it a first `atomic record` in, say, a Next.js repository walks straight
(repo_root: &Path)
| 124 | /// |
| 125 | /// An `IgnoreRules` instance with all loaded patterns. |
| 126 | pub fn load(repo_root: &Path) -> Self { |
| 127 | let global = load_global_ignore(); |
| 128 | let local = load_local_ignore(repo_root); |
| 129 | Self { |
| 130 | global, |
| 131 | local, |
| 132 | repo_root: repo_root.to_path_buf(), |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | /// Load ignore rules for knowledge-graph enrichment. |
| 137 | /// |
nothing calls this directly
no test coverage detected