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)
| 138 | /// * `insertions` - Number of lines added |
| 139 | /// * `deletions` - Number of lines deleted |
| 140 | pub fn modified(path: impl Into<String>, insertions: usize, deletions: usize) -> Self { |
| 141 | Self::new(path, insertions, deletions, 'M') |
| 142 | } |
| 143 | |
| 144 | /// Get the total number of changed lines. |
| 145 | pub fn total_changes(&self) -> usize { |