pub fn normalize_workspace_root(p: &Path) -> PathBufExpand description
Normalise a path for comparison against jj’s workspace root output:
canonicalize (resolve symlinks / macOS case) and strip the Windows
verbatim prefix (\\?\…, which canonicalize adds but jj never emits). A
path that doesn’t exist (or otherwise fails to canonicalize — e.g. a
worktree directory already removed) falls back to its own literal form.
Shared by workspace_root_matches and vcs-core’s async worktree-removal
path, so the two resolvers normalise identically (T-080).