MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / exclude

Method exclude

atomic-core/src/output/repo/tree.rs:269–272  ·  view source on GitHub ↗

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>)

Source from the content-addressed store, hash-verified

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 ///

Callers 4

test_options_excludeFunction · 0.45
test_options_chainingFunction · 0.45
test_options_is_excludedFunction · 0.45

Calls 1

pushMethod · 0.45

Tested by 4

test_options_excludeFunction · 0.36
test_options_chainingFunction · 0.36
test_options_is_excludedFunction · 0.36