Add an exclude pattern. # Arguments `pattern` - Pattern to exclude (simple prefix matching) # Example ```rust use atomic_core::output::repo::TreeCollectOptions; let opts = TreeCollectOptions::new() .exclude("target/") .exclude(".git/"); assert_eq!(opts.exclude_patterns.len(), 2); ```
(mut self, pattern: impl Into<String>)
| 267 | /// assert_eq!(opts.exclude_patterns.len(), 2); |
| 268 | /// ``` |
| 269 | pub fn exclude(mut self, pattern: impl Into<String>) -> Self { |
| 270 | self.exclude_patterns.push(pattern.into()); |
| 271 | self |
| 272 | } |
| 273 | |
| 274 | /// Check if a path matches the prefix filter. |
| 275 | /// |