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

Method apply_import_ignores

atomic-cli/src/commands/git/parallel.rs:2190–2201  ·  view source on GitHub ↗
(&self, commit: &mut ParsedCommit)

Source from the content-addressed store, hash-verified

2188 }
2189
2190 fn apply_import_ignores(&self, commit: &mut ParsedCommit) {
2191 if self.ignore_matcher.is_empty() || commit.files.is_empty() {
2192 return;
2193 }
2194
2195 commit
2196 .files
2197 .retain(|file| !self.file_ignored_for_import(file));
2198 if commit.files.is_empty() {
2199 commit.is_empty = true;
2200 }
2201 }
2202
2203 /// Import commits from a branch into an Atomic repository.
2204 ///

Callers 1

phase1_parseMethod · 0.80

Calls 2

is_emptyMethod · 0.45

Tested by

no test coverage detected