pub fn validate_submodule_path(work_tree: &Path, rel: &str) -> Result<()>Expand description
Rejects submodule paths that traverse symlinks (Git validate_submodule_path).
Path components follow Git is_dir_sep: on Unix only / separates; on Windows both /
and \ do. A carriage return in a single segment (e.g. sub\r) must not be split.