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

Function atomic_private_path

atomic-repository/src/repository/project_tree.rs:345–351  ·  view source on GitHub ↗

Whether `path` is Atomic-private shim state (`.atomic*`): tracked alive in the worktree's Atomic view but deliberately absent from project manifests and from Git. Staged whole-tree verification (review R3) exempts these paths from the extra-path refusal exactly as the conversion policy does.

(path_bytes: &[u8])

Source from the content-addressed store, hash-verified

343/// these paths from the extra-path refusal exactly as the conversion policy
344/// does.
345pub fn atomic_private_path(path_bytes: &[u8]) -> bool {
346 let first = path_bytes
347 .split(|byte| *byte == b'/')
348 .next()
349 .unwrap_or_default();
350 first == b".atomic" || path_bytes == b".atomicignore"
351}
352
353/// Whether `path` is shim-private state under
354/// [`ExclusionPolicy::ShimPrivate`] — deliberately absent from project

Callers 4

atomic_private_membersFunction · 0.85
exclusionMethod · 0.85

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected