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

Method exclusion

atomic-repository/src/repository/project_tree.rs:263–275  ·  view source on GitHub ↗
(self, path: &RepoPath)

Source from the content-addressed store, hash-verified

261 }
262
263 pub fn exclusion(self, path: &RepoPath) -> Option<ExclusionReason> {
264 if atomic_private_path(path.as_bytes())
265 && (path.as_bytes() != b".atomicignore" || !self.includes_atomic_ignore())
266 {
267 Some(ExclusionReason::AtomicPrivate)
268 } else if path.components().next().unwrap_or_default() == b".vault"
269 && !self.includes_vault()
270 {
271 Some(ExclusionReason::VaultPrivate)
272 } else {
273 None
274 }
275 }
276
277 /// Resolve the vault half of the policy for one live colocated Git
278 /// repository (RFC §6.2: "`.vault/` is private by default but may be

Callers 8

compileMethod · 0.80
is_excludedFunction · 0.80
apply_commitMethod · 0.80
observe_worktreeFunction · 0.80
parse_treeMethod · 0.80
project_treeMethod · 0.80

Calls 6

atomic_private_pathFunction · 0.85
componentsMethod · 0.80
includes_vaultMethod · 0.80
as_bytesMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected