(
&self,
change: &Change,
change_hash: &Hash,
config: &DiffOutputConfig,
file_diffs: Vec<FileDiff>,
stats: DiffStats,
)
| 258 | } |
| 259 | |
| 260 | fn print_change_file_diffs( |
| 261 | &self, |
| 262 | change: &Change, |
| 263 | change_hash: &Hash, |
| 264 | config: &DiffOutputConfig, |
| 265 | file_diffs: Vec<FileDiff>, |
| 266 | stats: DiffStats, |
| 267 | ) -> CliResult<()> { |
| 268 | if file_diffs.is_empty() { |
| 269 | self.print_no_changes(); |
| 270 | return Ok(()); |
| 271 | } |
| 272 | |
| 273 | if config.format == DiffFormat::Unified { |
| 274 | self.print_change_header(change, change_hash, config); |
| 275 | } |
| 276 | |
| 277 | match config.format { |
| 278 | DiffFormat::Unified => self.print_unified(&file_diffs, config), |
| 279 | DiffFormat::Stat => self.print_stat(&stats, config), |
| 280 | DiffFormat::NameOnly => self.print_name_only(&file_diffs), |
| 281 | DiffFormat::NameStatus => self.print_name_status(&file_diffs, config), |
| 282 | } |
| 283 | } |
| 284 | |
| 285 | /// Reconstruct a line's text content from its leaf operations. |
| 286 | pub(super) fn reconstruct_line_from_leaf_ops(leaf_ops: &[LeafOp]) -> String { |
no test coverage detected