Check if this change has any hunks.
(&self)
| 1209 | |
| 1210 | /// Check if this change has any hunks. |
| 1211 | pub fn is_empty(&self) -> bool { |
| 1212 | self.hunks.is_empty() |
| 1213 | && self.file_ops.is_empty() |
| 1214 | && self.span.as_ref().is_none_or(|span| span.ops.is_empty()) |
| 1215 | } |
| 1216 | |
| 1217 | /// Get the number of hunks. |
| 1218 | pub fn hunk_count(&self) -> usize { |
no test coverage detected