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

Method new

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

Source from the content-addressed store, hash-verified

338
339impl ImportIgnoreMatcher {
340 fn new(patterns: Vec<String>) -> Self {
341 let patterns = patterns
342 .into_iter()
343 .map(|pattern| pattern.trim().replace('\\', "/"))
344 .filter(|pattern| !pattern.is_empty() && !pattern.starts_with('#'))
345 .collect();
346 Self { patterns }
347 }
348
349 fn is_empty(&self) -> bool {
350 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