Patch files are the primary focus of a collection of small programs designed to operate on them.
Another tool included in Patchutils is Combinediff, which can be used to merge two incremental patches into a single patch file. This is a useful feature as the resulting patch file will only alter each file once.
Filterdiff is a tool that can be used to select portions of a patch file that apply to shell wildcards. You can also use it to exclude portions of a patch file that don't apply to the wildcards.
In addition to these tools, Patchutils includes Fixcvsdiff, Rediff, Lsdiff, Splitdiff, Grepdiff, Recountdiff, and Unwrapdiff. Each of these tools provides different functionalities for working with patch files.
For example, Rediff can be used to correct hand-edited patches by comparing the original patch with the modified one and adjusting the offsets and counts. Lsdiff provides a short listing of affected files in a patch file, along with the line numbers of the start of each patch.
Usage of Interdiff can be done by using the command line options. The -U option is used to specify the maximum number of lines of context to carry. The -i option is used to consider upper- and lower-case to be the same. The -w option is used to ignore whitespace changes in patches. The -b option is used to ignore changes in the amount of whitespace. The -B option is used to ignore changes whose lines are all blank. The -p option is used to specify the number of pathname components to ignore. The -q option is used to exclude rationale text. The -d option is used to drop context on matching files. The -z option is used to decompress .gz and .bz2 files.
Finally, Patchutils also provides different ways to run the tools, such as 'interpolate', 'combine', and 'flipdiff'. The '--no-revert-omitted' option can be used in interdiff to prevent reversion of patches that are not in patch2. The '--in-place' option can be used in flipdiff to write the output to the original input files.
Version 0.3.1: N/A