parse_diff

Function parse_diff 

Source
pub fn parse_diff(
    diff: &str,
    file_filter: &FileFilter,
    lines_changed_only: &LinesChangedOnly,
) -> HashMap<String, FileDiffLines>
Available on crate feature file-changes only.
Expand description

Parses a git diff string into a map of file names to their corresponding FileDiffLines.

The file_filter is used to filter out files that are not of interest. The lines_changed_only parameter determines whether to include files based on their contents’ changes.