Skip to main content

format_stat_line

Function format_stat_line 

Source
pub fn format_stat_line(
    path: &str,
    insertions: usize,
    deletions: usize,
    max_path_len: usize,
) -> String
Expand description

Generate diff stat output (file name + insertions/deletions).

Returns a single line like: file.txt | 5 ++---