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

Method new

atomic-cli/src/commands/git/parallel.rs:227–234  ·  view source on GitHub ↗
(patterns: Vec<String>)

Source from the content-addressed store, hash-verified

225
226impl ImportIgnoreMatcher {
227 fn new(patterns: Vec<String>) -> Self {
228 let patterns = patterns
229 .into_iter()
230 .map(|pattern| pattern.trim().replace('\\', "/"))
231 .filter(|pattern| !pattern.is_empty() && !pattern.starts_with('#'))
232 .collect();
233 Self { patterns }
234 }
235
236 fn is_empty(&self) -> bool {
237 self.patterns.is_empty()

Callers

nothing calls this directly

Calls 6

parentMethod · 0.80
into_iterMethod · 0.45
replaceMethod · 0.45
is_emptyMethod · 0.45
cloneMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected