RECOUNTDIFF(1)
π recountdiff(1) β recompute patch counts and offsets π
okay so bestie, welcome to the recountdiff page β that's RECOUNTDIFF(1) to the section-1 girlies, and she is so much chiller than she looks. sit down, grab a strawberry, we're fixing diff headers together π
β¨ SYNOPSIS β¨
recountdiff [file...]
recountdiff {[--help] | [--version]}
like, you can hand her a bunch of *file*s, or you can just ask her for --help / --version and nothing else. those are the two moods π
πΈ DESCRIPTION πΈ
so recountdiff recomputes the counts and offsets in unified context diffs. yes literally, that's her whole job, she's an icon π
and the way she does it?? two passes, bestie, a two-pass queen:
- first the counts get corrected β she does this by inspection of the actual patch lines π like she actually reads the receipts, she does not trust the header
- then the offsets are adjusted according to the computed counts β¨
then the corrected diff gets sent to standard output β so pipe it somewhere, redirect it, do whatever, she's not writing files for you π
π OPTIONS π
--helpβ display a short usage message π«Ά (a little "here's how to use me" moment)--versionβ display the version number ofrecountdiffβ (her birth chart, basically)
π LIMITATIONS π
not everything can be saved, and I need you to hear me on this.
there are some things that cannot be dealt with. if you've removed the first context line in a hunk, for example, there is no way for recountdiff to know that. like, the evidence is gone, bestie π
for more precise fixing up, use rediff(1) β she uses the original and modified diffs, so she has way more to work with. different girl, different superpowers π§
π SEE ALSO π
π AUTHOR π
Tim Waugh <twaugh@redhat.com>
- Package maintainer π
π¦ A LITTLE SIGN-OFF π¦
this page came to you from the patchutils package, dated 5 July 2002 β vintage, iconic, still slaying. now go recount those diffs, you're doing amazing sweetie πβ¨π
π¦ where this page comes from
- alpine 3.22: patchutils-doc 0.4.2-r3 Β· GPL-2.0-or-later
- alpine 3.23: patchutils-doc 0.4.4-r0 Β· GPL-2.0-or-later
- alpine 3.24: patchutils-doc 0.4.5-r0 Β· GPL-2.0-or-later
- arch rolling: patchutils 0.4.5-1 Β· GPL-2.0-only
- centos-stream 10: patchutils 0.4.2-15.el10 Β· GPL-2.0-or-later
- centos-stream 9: patchutils 0.4.2-7.el9 Β· GPLv2+
- debian bookworm: patchutils 0.4.2-1 Β· GPL-2.0-or-later
- debian trixie: patchutils 0.4.2-1 Β· GPL-2.0-or-later
- fedora 43: patchutils 0.4.2-16.fc43 Β· GPL-2.0-or-later
- fedora 44: patchutils 0.4.4-3.fc44 Β· GPL-2.0-or-later
- opensuse-leap 16.0: patchutils 0.4.2-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: patchutils 0.4.2-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: patchutils 0.4.2-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: patchutils 0.4.2-160000.2.2 Β· GPL-2.0-or-later
- ubuntu jammy: patchutils 0.4.2-1build2 Β· GPL-2.0-or-later
- ubuntu noble: patchutils 0.4.2-1build3 Β· GPL-2.0-or-later
- ubuntu questing: patchutils 0.4.2-1build3
- ubuntu resolute: patchutils 0.4.3-1ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: patchutils 0.4.5-1ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms