Skip to main content

same_project

Function same_project 

Source
pub fn same_project(a: &str, b: &str) -> bool
Expand description

Normalize paths from any client format to a consistent OS-native form. Handles MSYS2/Git Bash drive prefixes on Windows hosts (/c/Users/... -> C:/Users/...), mixed separators, double slashes, and trailing slashes. Uses forward slashes for consistency. On non-Windows hosts /c/... is a literal directory and passes through unchanged (#397). Whether two recorded project roots name the same project: equal after separator and trailing-slash normalization, or after resolving symlinks. The one comparison for project-scoped records (agents, messages, shares): a raw string comparison split one project into several by spelling.