Skip to main content

print_summary_diff

Function print_summary_diff 

Source
pub fn print_summary_diff(
    path: &Path,
    original: &str,
    modified: &str,
) -> DiffStats
Expand description

Print a summary of changes (only changed lines with minimal context)

This shows a more focused view than a full unified diff, displaying only the lines that changed with their line numbers.

ยงArguments

  • path - The file path
  • original - The original file content
  • modified - The modified file content

Returns statistics about the diff.