Count the number of changed hunks in the new line.
(&self)
| 458 | |
| 459 | /// Count the number of changed hunks in the new line. |
| 460 | pub fn new_change_count(&self) -> usize { |
| 461 | self.new_hunks.iter().filter(|s| s.is_change()).count() |
| 462 | } |
| 463 | |
| 464 | /// Get the total number of bytes that were deleted. |
| 465 | pub fn deleted_bytes(&self) -> usize { |