Skip to main content

is_reserved_worktree_path

Function is_reserved_worktree_path 

Source
pub fn is_reserved_worktree_path(path: &Path) -> bool
Expand description

Whether path is a reserved worktree-root Heddle artifact, or passes through a metadata-directory alias (.git at any depth, .heddle at the root; see crate::object::reserved_tree_entry_name).

The Heddle artifacts are root-anchored only: examples/calculator/.heddle/ is not reserved. Leading ./ is skipped so ./.heddle/identity.toml matches.