recountdiff — recompute patch counts and offsets
recountdiff [file...]
recountdiff {[--help] | [--version]}
recountdiff recomputes the counts and offsets in unified context diffs. It does this in two passes: first the counts are corrected by inspection of the actual patch lines, and then the offsets are adjusted according to the computed counts.
The corrected diff is sent to standard output.