RECOUNTDIFF(1)

πŸ“¦
version 0.4.5 Β· 2 versions
  • 0.4.5 Β· alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.3.3 Β· nixos 26.05, nixpkgs unstable
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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:

  1. 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
  2. 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 of recountdiff ⭐ (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 πŸŽ€βœ¨πŸ’–