Skip to main content

display_path

Function display_path 

Source
pub fn display_path(path: &Path) -> String
Expand description

Render a worktree path for a message the user may paste back as a command. Sibling worktrees are the common layout and ../wt-a reads better than a long absolute path. Only exact prefix matches are shortened, so the result is always a usable path - never a guess.