Skip to main content

normalize_worktree_file_path

Function normalize_worktree_file_path 

Source
pub fn normalize_worktree_file_path(
    file_path: &str,
    work_tree: &Path,
    prefix: Option<&str>,
) -> String
Expand description

Normalize a worktree file path for porcelain commands (blame, log, …).

Accepts repo-relative or absolute paths under work_tree.