Add statistics for a file. # Arguments `file_stats` - Statistics for the file to add
(&mut self, file_stats: FileDiffStats)
| 220 | /// |
| 221 | /// * `file_stats` - Statistics for the file to add |
| 222 | pub fn add_file(&mut self, file_stats: FileDiffStats) { |
| 223 | self.total_insertions += file_stats.insertions; |
| 224 | self.total_deletions += file_stats.deletions; |
| 225 | self.files.push(file_stats); |
| 226 | } |
| 227 | |
| 228 | /// Get the number of files with changes. |
| 229 | pub fn file_count(&self) -> usize { |