COMBINEDIFF(1)

πŸ’– COMBINEDIFF β€” the combinediff manual, bestie edition πŸ’–

okay so you want to smash two patches together into one cumulative glow-up? combinediff is literally your girl. she lives in patchutils, section 1 of the manual pages, and she's about to make your incremental patches hold hands. 🫢


✨ NAME ✨

combinediff β€” create a cumulative unified patch from two incremental patches 🌈


πŸŽ€ SYNOPSIS πŸŽ€

combinediff [[-p n] | [--strip-match=n]] [[-U n] | [--unified=n]]
            [[-d PAT] | [--drop-context=PAT]] [[-q] | [--quiet]] [[-z] |
            [--decompress]] [[-b] | [--ignore-space-change]] [[-B] |
            [--ignore-blank-lines]] [[-i] | [--ignore-case]] [[-w] |
            [--ignore-all-space]] [--color=WHEN] [[--interpolate] |
            [--combine]] diff1 diff2

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

like. that's the whole vibe. two diffs, one destiny. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

combinediff creates a unified diff that expresses the sum of two diffs. no cap. it's giving "you two patches are getting married." πŸ’

The diff files must be listed in the order that they are to be applied. order matters bestie, do not play with me here. πŸ™ˆ

For best results, the diffs must have at least three lines of context. three. minimum. that's the rule. ✨

Since combinediff doesn't have the advantage of being able to look at the files that are to be modified, it has stricter requirements on the input format than patch(1) does. The output of GNU diff will be okay, even with extensions, but if you intend to use a hand-edited patch it might be wise to clean up the offsets and counts using recountdiff(1) first. (yes bestie, go clean yourself up first. self-care.) πŸ§–

Note, however, that the two patches must be in strict incremental order. In other words, the second patch must be relative to the state of the original set of files after the first patch was applied. this is not optional. this is the whole entire point. 😭

The diffs may be in context format. The output, however, will be in unified format. so like, she takes context on the way in, and serves unified on the way out. a true queen of transformation πŸ‘‘


πŸ’… OPTIONS πŸ’…

  • -pn, --strip-match=n β€” When comparing filenames, ignore the first n pathname components from both patches. (This is similar to the -p option to GNU patch(1).) If this option is not specified, combinediff will automatically determine the optimal number of path components to strip by finding the smallest value where at least one file matches between the two patches. she's smart like that. she does the math for you. 🧠✨
  • -q, --quiet β€” Quieter output. Don't emit rationale lines at the beginning of each patch. shhh. 🀫
  • -Un, --unified=n β€” Attempt to display n lines of context (requires at least n lines of context in both input files). (This is similar to the -U option to GNU diff(1).)
  • -dpattern, --drop-context=PATTERN β€” Don't display any context on files that match the shell wildcard pattern. This option can be given multiple times. πŸ” Note that the interpretation of the shell wildcard pattern does not count slash characters or periods as special (in other words, no flags are given to fnmatch). This is so that β€œ*/basename”-type patterns can be given without limiting the number of pathname components. iykyk πŸ“
  • -i, --ignore-case β€” Consider upper- and lower-case to be the same. A and a? same girl, different font. πŸ’œ
  • -w, --ignore-all-space β€” Ignore whitespace changes in patches. Also makes patch application ignore whitespace when reconstructing files. whitespace? never met her. πŸ«₯
  • -b, --ignore-space-change β€” Ignore changes in the amount of whitespace. like, you added a space? cute. don't care. 🌸
  • -B, --ignore-blank-lines β€” Ignore changes whose lines are all blank. blank lines are just vibes anyway. 😌
  • --color=WHEN β€” colorize the output; WHEN can be 'never', 'always', or 'auto' (default: auto, use 'never' to disable). yes bestie, she can serve lewks. 🌈
  • -z, --decompress β€” Decompress files with extensions .gz and .bz2. unzip her, unzip her. 🎁
  • --interpolate β€” Run as β€œinterdiff”. See interdiff(1) for more information about how the behaviour is altered in this mode. she's wearing a different outfit now. πŸ’ƒ
  • --combine β€” Run as β€œcombinediff”. This is the default. the original girl. the blueprint. πŸ‘‘
  • --help β€” Display a short usage message. she'll tell you what's up, briefly. 🫢
  • --version β€” Display the version number of combinediff. πŸ“Œ

πŸ’€ BUGS πŸ’€

The -U option is a bit erratic: it can control the amount of context displayed for files that are modified in both patches, but not for files that only appear in one patch (which appear with the same amount of context in the output as in the input).

so like. she's doing her best. one patch files get ignored by -U. not me defending her but also yes me defending her. πŸ˜­πŸ™ˆ


🌟 SEE ALSO 🌟


πŸ‘‘ AUTHOR πŸ‘‘

Tim Waugh <twaugh@redhat.com> Package maintainer


and that's the whole entire manual, bestie. go forth and combine those diffs. slay. periodt. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά

this page came from patchutils, dated 23 Jan 2009 β€” yes she's an elder but she ate and left no crumbs. πŸŒˆβ­πŸ’œ

πŸ“¦ where this page comes from