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

Method is_ignored

atomic-repository/src/repository/changes.rs:54–57  ·  view source on GitHub ↗

Check if a path should be ignored. This is a convenience method that loads ignore rules and checks the path. If you need to check multiple paths, use [`Self::ignore_rules()`] instead to avoid reloading the rules for each check. # Arguments `path` - Path to check (relative to repository root) `is_dir` - Whether the path is a directory # Returns `true` if the path should be ignored, `false` oth

(&self, path: &Path, is_dir: bool)

Source from the content-addressed store, hash-verified

52 ///
53 /// `true` if the path should be ignored, `false` otherwise.
54 pub fn is_ignored(&self, path: &Path, is_dir: bool) -> bool {
55 let rules = self.ignore_rules();
56 rules.is_ignored(path, is_dir)
57 }
58
59 /// Save a change to the repository.
60 ///

Callers 2

walkMethod · 0.45
should_ignore_with_rulesFunction · 0.45

Calls 1

ignore_rulesMethod · 0.80

Tested by

no test coverage detected