difffilter is a traditional unix filter which reads unified diff data from standard input. While reading each unified diff header's filename specification, it checks if any of the POSIX Extended Regular expressions matches. If there is a match, that diff won't be written to output. However, all other (unmatched) diffs in a patch will be written to standard output. difffilter also supports making other modifications to diffs and more advanced filtering options.
Documentation is shipped with the sources and installed as a manpage using the txt2man(1) utility. You may read difffilter(1) online. Particularly, see the EXAMPLES section of difffilter(1).
Ubuntu users may use binki's PPA to install difffilter.
difffilter-0.3.1 is a bugfix release. Such bugs include not handling multifile diffs where a file's headers immediately follow the end of a diff block, supporting diffs which have one-line instead of two-line headers, and supporting diff block comments (such as what git's diff outputs). Support for mingw32 and macosx platforms was added too, with the help of a libstrl dependency for getline().
difffilter-0.3 is out. It supports much improved CVS keyword change nullification and whitespace change nullification/removal with a complete change nullification engine which may be extended to support further automated change removal in the future. It now supports reducing the number of lines of context (i.e., using diff(1)'s -U option post facto). And it now accepts both Basic and Extended POSIX Regular Expressions (instead of just Extended Regular Expressions). However, the CLI did change, so please read difffilter(1) and pay particular attention to -e and -E.
Support, somewhat, CVS Keyword removal. Somewhat more robust.
Fixes a segfault upon use of the -v parameter, IIRC.
The first release of difffilter.
difffilter depends on the following packages:
Please report bugs at against difffilter at our bugtracker. Also, feel free to speak to binki directly via email or in or ohnopub#ohnopublishing.