Create statistics for a modified file. # Arguments `path` - The file path `insertions` - Number of lines added `deletions` - Number of lines deleted
(path: impl Into<String>, insertions: usize, deletions: usize)
| 161 | /// * `insertions` - Number of lines added |
| 162 | /// * `deletions` - Number of lines deleted |
| 163 | pub fn modified(path: impl Into<String>, insertions: usize, deletions: usize) -> Self { |
| 164 | Self::new(path, insertions, deletions, 'M') |
| 165 | } |
| 166 | |
| 167 | /// Get the total number of changed lines. |
| 168 | pub fn total_changes(&self) -> usize { |