UNWRAPDIFF(1)
π UNWRAPDIFF β ok bestie, let's talk about your crusty wrapped patches
So like. You know that thing where a patch gets word-wrapped by some email client or whatever and it's completely unusable? Yeah. That's what unwrapdiff is here to fix. It's a little patchutils icon and it demangles word-wrapped patches, fr fr. Manual page UNWRAPDIFF(1), but you can just call her by her name. π«Ά
β¨ NAME β¨
unwrapdiff β demangle word-wrapped patches π
π SYNOPSIS π
unwrapdiff [-v] [file...]
unwrapdiff {[--help] | [--version]}
πΈ DESCRIPTION πΈ
Okay so here's the tea. unwrapdiff demangles patches that have been word-wrapped, in an attempt to make them useful again. Like it's giving rescue mission. It's giving glow-up. π
The corrected diff gets sent to standard output. Simple. Clean. Iconic.
β οΈ Bestie listen β you will probably need to use the -l option when applying the patch, so you can ignore any whitespace differences that might be hanging around in there. Do not skip this step. I'm literally begging. π
π OPTIONS π
-vβ Verbose operation, i.e. main character mode. A list of lines that are modified in a way that might be wrong gets sent to stderr. So like, it snitches on itself. Very transparent of her. π--helpβ Displays a short usage message. The little "hey here's how to use me" moment. π--versionβ Displays the version number ofunwrapdiff. Because knowing which era of the icon you're dealing with is important. π
π LIMITATIONS π
Not everything is perfect, and we're gonna be honest about it, no cap. β
Some heuristics are used to decide whether to use a space to recombine a wrapped line, or to just join them together. Currently, this is done by comparing the last three characters of a line with the first two characters of its continuation, and using a space if any of them are different.
The patch needs to have been valid before being word-wrapped. Like she can un-wrap, but she cannot un-corrupt. That's a you problem bestie. π
The last line of a hunk is nearly always ambiguous. π So here's how she copes: if the next line begins @@, Index: , diff or --- then it is taken to be complete; otherwise it is unwrapped using the next line. That's the rule. Periodt.
π AUTHOR π
Tim Waugh <twaugh@redhat.com> β Package maintainer π«Ά
π SEE YA π
That's the whole page, bestie. Written under the patchutils banner, dated 17 January 2003 β vintage, iconic, still slaying. Now go un-wrap those patches and go off. π
β¨π¦
π¦ 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