(
&self,
change: &Change,
change_hash: &Hash,
config: &DiffOutputConfig,
file_diffs: Vec<FileDiff>,
stats: DiffStats,
)
| 346 | } |
| 347 | |
| 348 | fn print_change_file_diffs( |
| 349 | &self, |
| 350 | change: &Change, |
| 351 | change_hash: &Hash, |
| 352 | config: &DiffOutputConfig, |
| 353 | file_diffs: Vec<FileDiff>, |
| 354 | stats: DiffStats, |
| 355 | ) -> CliResult<()> { |
| 356 | if file_diffs.is_empty() { |
| 357 | self.print_no_changes(); |
| 358 | return Ok(()); |
| 359 | } |
| 360 | |
| 361 | if config.format == DiffFormat::Unified { |
| 362 | self.print_change_header(change, change_hash, config); |
| 363 | } |
| 364 | |
| 365 | match config.format { |
| 366 | DiffFormat::Unified => self.print_unified(&file_diffs, config), |
| 367 | DiffFormat::Stat => self.print_stat(&stats, config), |
| 368 | DiffFormat::NameOnly => self.print_name_only(&file_diffs), |
| 369 | DiffFormat::NameStatus => self.print_name_status(&file_diffs, config), |
| 370 | } |
| 371 | } |
| 372 | |
| 373 | /// Reconstruct a line's text content from its leaf operations. |
| 374 | pub(super) fn reconstruct_line_from_leaf_ops(leaf_ops: &[LeafOp]) -> String { |
no test coverage detected