Skip to main content

remove_leaf_beneath

Function remove_leaf_beneath 

Source
pub fn remove_leaf_beneath(root: &Path, path: &Path) -> Result<bool, Error>
Expand description

Remove the tracked leaf path beneath root (a file or a symlink, never its target). Returns false without touching anything when a parent is a symlink or missing, matching Git: the path is not in the worktree.