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

Function is_forbidden_shadow_path

atomic-cli/src/commands/git/shadow.rs:396–398  ·  view source on GitHub ↗

Whether `path` (a repo-relative git path) is a git-excluded Atomic shadow / provenance path that Rule V4 forbids from any shadow commit.

(path: &str)

Source from the content-addressed store, hash-verified

394/// Whether `path` (a repo-relative git path) is a git-excluded Atomic shadow /
395/// provenance path that Rule V4 forbids from any shadow commit.
396fn is_forbidden_shadow_path(path: &str) -> bool {
397 path == ".atomicignore" || path.starts_with(".atomic/") || path.starts_with(".vault/")
398}
399
400/// Discard a candidate staging by restoring the git index from HEAD's tree,
401/// leaving git byte-identical to its pre-operation state (the working copy is

Callers 2

first_incoherent_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected