Skip to main content

Module diff

Module diff 

Source

Enums§

ColorMode
When colored unified-diff output should be emitted.

Functions§

colorize_unified_diff
Apply ANSI styling to a unified-diff body (headers, hunks, adds, removals).
print_diff
Print a unified diff to stdout. No-op if texts are identical.
unified_diff
Produce a unified diff between original and formatted text using imara-diff’s histogram algorithm (same as git’s default).