rustfmt_format_diff

Function scan_diff

Source
pub(crate) fn scan_diff<R>(
    from: R,
    skip_prefix: u32,
    file_filter: &str,
) -> Result<(HashSet<String>, Vec<Range>), FormatDiffError>
where R: Read,
Expand description

Scans a diff from from, and returns the set of files found, and the ranges in those files.