Load ignore rules for a repository. This loads rules from both global and local ignore files. Missing files are silently ignored (not an error). # Arguments `repo_root` - The root directory of the repository # Returns An `IgnoreRules` instance with all loaded patterns.
(repo_root: &Path)
| 107 | /// |
| 108 | /// An `IgnoreRules` instance with all loaded patterns. |
| 109 | pub fn load(repo_root: &Path) -> Self { |
| 110 | let global = load_global_ignore(); |
| 111 | let local = load_local_ignore(repo_root); |
| 112 | Self { |
| 113 | global, |
| 114 | local, |
| 115 | repo_root: repo_root.to_path_buf(), |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | /// Create an empty IgnoreRules (ignores nothing except built-in patterns). |
| 120 | /// |
nothing calls this directly
no test coverage detected