Skip to main content

check_explicit_path_isolation

Function check_explicit_path_isolation 

Source
pub fn check_explicit_path_isolation(
    is_git_overlay: bool,
    requested: &Path,
    repo_root: &Path,
    heddle_dir: &Path,
) -> Result<(), ThreadPathIsolationError>
Expand description

Pure path-isolation check for an explicit start path.

Returns Ok(()) when the path is allowed, or ThreadPathIsolationError::InsideTrackedTree when a git-overlay start would land inside the tracked working tree.