pub fn prepare_regular_file_beneath(
root: &Path,
path: &Path,
) -> Result<(), Error>Expand description
Prepare path beneath root for an ordinary read-modify-write that must
not touch a user’s symlinks: missing parent directories are created, but an
existing symlinked parent, or a symlink or non-regular file at the leaf, is
refused rather than followed or replaced. Used where the path is a
convention inside the repository (.claude/settings.json) that a tracked
symlink may legitimately redirect elsewhere.