recountdiff(1)

recountdiff1

Recompute patch counts and offsets

Usage

recountdiff [file ...]

recountdiff {[--help] | [--version]}

Overview

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.

Options

--help

Display a short usage message.

--version

Display the version number of recountdiff.

Limitations

There are some things that cannot be dealt with. If you have removed the first context line in a hunk, for example, there is no way for recountdiff to know that. For more precise fixing up, use rediff(1), which uses the original and modified diffs.

Releases

12 releases since Debian 3.1 (Sarge); the text changed 5 times.

  1. 3.1–5.0
  2. 6.0
  3. 7
  4. 8
  5. 9–10
  6. 11–Arch

Author

Tim Waugh <[email protected]>

Package maintainer

From patchutils 0.4.5-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.