Skip to main content

display_worktree_path

Function display_worktree_path 

Source
pub fn display_worktree_path(target: &Path, root: &Path) -> String
Expand description

Formats a worktree path for display and for git CLI commands: relative to root if inside root or a sibling (same parent directory); otherwise absolute.