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

Method exclusion

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

Source from the content-addressed store, hash-verified

248
249impl ExclusionPolicy {
250 pub fn exclusion(self, path: &RepoPath) -> Option<ExclusionReason> {
251 if atomic_private_path(path.as_bytes()) {
252 Some(ExclusionReason::AtomicPrivate)
253 } else if path.components().next().unwrap_or_default() == b".vault"
254 && self == Self::ShimPrivate
255 {
256 Some(ExclusionReason::VaultPrivate)
257 } else {
258 None
259 }
260 }
261
262 /// Resolve the vault half of the policy for one live colocated Git
263 /// 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 4

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

Tested by

no test coverage detected