Create a new `WatcherConfig` for the given repository root. The `.atomic/` directory is automatically added to the ignore list.
(repo_root: impl Into<PathBuf>)
| 151 | /// |
| 152 | /// The `.atomic/` directory is automatically added to the ignore list. |
| 153 | pub fn new(repo_root: impl Into<PathBuf>) -> Self { |
| 154 | Self { |
| 155 | repo_root: repo_root.into(), |
| 156 | ignore_patterns: Self::DEFAULT_IGNORE |
| 157 | .iter() |
| 158 | .map(|s| (*s).to_string()) |
| 159 | .collect(), |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | /// Add a glob pattern to the ignore list. |
| 164 | /// |