Patchutils 0.3.2

A small collection of programs that operate on patch files.
  1 Screenshot
Patchutils is a a collection of tools that operate on patch files.

Interdiff generates an incremental patch from two patches against a common source. For example, if you have applied a pre-patch to a source tree, and wish to apply another pre-patch (which is against the same original source tree), you can use interdiff to generate the patch that you need to apply. You can also use this to review changes between two pre-patches.

Combinediff generates a single patch from two incremental patches, allowing you to merge patches together. The resulting patch file only alters each file once.

Filterdiff will select the portions of a patch file that apply to files matching (or, alternatively, not matching) a shell wildcard.

Fixcvsdiff is for correcting the output of 'cvs diff'.

Rediff corrects hand-edited patches, by comparing the original patch with the modified one and adjusting the offsets and counts.

Lsdiff displays a short listing of affected files in a patch file, along with (optionally) the line numbers of the start of each patch.

Splitdiff separates out patches from a patch file so that each new patch file only alters any given file once. In this way, a file containing several incremental patches can be split into individual incremental patches.

Grepdiff displays a list of the files modified by a patch where the patch contains a given regular expression.

Recountdiff fixes up counts and offsets in a unified diff.

Unwrapdiff fixes word-wrapped unified diffs.

Usage: interdiff [OPTIONS] patch1 patch2
interdiff --version|--help

-U N max lines of context to carry
-i Consider upper- and lower-case to be the same
-w ignore whitespace changes in patches
-b ignore changes in the amount of whitespace
-B ignore changes whose lines are all blank
-p N pathname components to ignore
-q don't add rationale text
-d PAT drop context on matching files
-z decompress .gz and .bz2 files
--interpolate run as 'interdiff'
--combine run as 'combinediff'
--flip run as 'flipdiff'
--no-revert-omitted (interdiff) When a patch from patch1 is not in patch2, don't revert it
--in-place (flipdiff) Write the output to the original input files

last updated on:
February 11th, 2011, 13:43 GMT
license type:
GPL (GNU General Public License) 
developed by:
Tim Waugh
ROOT \ Utilities
Download Button

In a hurry? Add it to your Download Basket!

user rating 12



Rate it!
What's New in This Release:
  • Interdiff had previously been putting absolute filenames in the input to the patch program.
  • It now avoids doing this. Editdiff no longer runs rediff when no changes were made in the editor.
  • The correct exit status is now set when the decompress option fails.
  • A temporary file leak has been fixed.
read full changelog

Add your review!