Skip to main content

Module diff

Module diff 

Source

Structs§

FileDiff
WhitespaceReport
Classification of a changeset by whitespace footprint.

Functions§

classify_diff_whitespace
Classify a unified diff by whitespace footprint.
parse_diff
Parse a git diff into individual file diffs
reconstruct_diff
Reconstruct a diff from FileDiff objects
smart_truncate_diff
Smart truncation of git diff with token-aware budgeting
strip_whitespace_only_files
Drop whitespace-only file sections from a diff, returning the trimmed diff.
truncate_diff_by_lines
Truncate a diff to fit within a line budget, distributing lines across files by priority.