Skip to main content

format_diff_path_with_prefix

Function format_diff_path_with_prefix 

Source
pub fn format_diff_path_with_prefix(
    prefix: &str,
    path: &str,
    quote_fully: bool,
) -> String
Expand description

Format one side of a diff --git / --- / +++ line: either prefix/path or "prefix<escaped-path>" when Git would C-quote the path (see t3300-funny-names).