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

Method new

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

Source from the content-addressed store, hash-verified

286
287impl ImportIgnoreMatcher {
288 fn new(patterns: Vec<String>) -> Self {
289 let patterns = patterns
290 .into_iter()
291 .map(|pattern| pattern.trim().replace('\\', "/"))
292 .filter(|pattern| !pattern.is_empty() && !pattern.starts_with('#'))
293 .collect();
294 Self { patterns }
295 }
296
297 fn is_empty(&self) -> bool {
298 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