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

Method file_ignored_for_import

atomic-cli/src/commands/git/parallel.rs:2185–2196  ·  view source on GitHub ↗
(&self, file: &ParsedFile)

Source from the content-addressed store, hash-verified

2183 }
2184
2185 fn file_ignored_for_import(&self, file: &ParsedFile) -> bool {
2186 match file.operation {
2187 FileOperation::Renamed => {
2188 let old_ignored = file
2189 .old_path
2190 .as_deref()
2191 .is_some_and(|old_path| self.path_ignored_for_import(old_path));
2192 old_ignored && self.path_ignored_for_import(&file.path)
2193 }
2194 _ => self.path_ignored_for_import(&file.path),
2195 }
2196 }
2197
2198 fn apply_import_ignores(&self, commit: &mut ParsedCommit) {
2199 if self.ignore_matcher.is_empty() || commit.files.is_empty() {

Callers 1

apply_import_ignoresMethod · 0.80

Calls 1

Tested by

no test coverage detected