(
&self,
change: &Change,
change_hash: &Hash,
config: &DiffOutputConfig,
file_diffs: Vec<FileDiff>,
stats: DiffStats,
)
| 558 | } |
| 559 | |
| 560 | fn print_change_file_diffs( |
| 561 | &self, |
| 562 | change: &Change, |
| 563 | change_hash: &Hash, |
| 564 | config: &DiffOutputConfig, |
| 565 | file_diffs: Vec<FileDiff>, |
| 566 | stats: DiffStats, |
| 567 | ) -> CliResult<()> { |
| 568 | if file_diffs.is_empty() { |
| 569 | self.print_no_changes(); |
| 570 | return Ok(()); |
| 571 | } |
| 572 | |
| 573 | if config.format == DiffFormat::Unified { |
| 574 | self.print_change_header(change, change_hash, config); |
| 575 | } |
| 576 | |
| 577 | match config.format { |
| 578 | DiffFormat::Unified => self.print_unified(&file_diffs, config), |
| 579 | DiffFormat::Stat => self.print_stat(&stats, config), |
| 580 | DiffFormat::NameOnly => self.print_name_only(&file_diffs), |
| 581 | DiffFormat::NameStatus => self.print_name_status(&file_diffs, config), |
| 582 | } |
| 583 | } |
| 584 | |
| 585 | /// Reconstruct a line's text content from its leaf operations. |
| 586 | pub(super) fn reconstruct_line_from_leaf_ops(leaf_ops: &[LeafOp]) -> String { |
no test coverage detected