NAME

adiff - wordwise diff


SYNOPSIS

wdiff [OPTION]... FILE1 FILE2


DESCRIPTION

This tool is a replacement for GNU wdiff. It's shorter, slower, written in Perl instead of C, doesn't have as many options, but provides some others.


WDIFF OPTIONS

These options come from the GNU wdiff program, which adiff mostly reimplements, minus a few options, minus a few bugs.

-i --ignore-case
Ignore case when comparing. The default is to be case-sensitive.

-w STRING --start-delete STRING
Use STRING as the ``start delete'' string. This string will be output prior to every sequence of deleted text, to mark where it starts. By default, the start delete string is [-.

-x STRING --end-delete STRING
Use STRING as the ``end delete'' string. This string will be output following every sequence of deleted text, to mark where it ends. By default, the end delete string is -].

-y STRING --start-insert STRING
Use STRING as the ``start insert'' string. This string will be output prior to every sequence of inserted text, to mark where it starts. By default, the start insert string is {+.

-z STRING --end-insert STRING
Use STRING as the ``end insert'' string. This string will be output following every sequence of inserted text, to mark where it ends. By default, the end insert string is +}.


DIFF OPTIONS

If any of the following options is given, adiff enters a different mode where it provides the shortest diff output possible while preserving structure. The diff output does not contain the start or end markers listed above.

-c
Use the context output format.

-C NUM --context[=NUM]
Use the context output format, showing lines (an integer) lines of context, or three if lines is not given.

-u
Use the unified output format.

-U NUM --unified[=NUM]
Use the unified output format, showing lines (an integer) lines of context, or three if lines is not given.

--normal
Use the normal diff output, instead of the default wdiff-style output.


REGEX OPTIONS

These options make it possible to use a different field separator than the default whitespace.

-r RE --regex RE
Override the default field separator regular expression (see --help for the default). This can produce some very.. interesting.. results.

-b --word-boundaries
Instead of breaking on whitespace, break on any word-boundary, as well as breaking on punctuation. For the sake of C literal strings split over lines, ``\s+'' is considered whitespace. See --help for the equivalent --regex argument.


OTHER OPTIONS

-h --help
Show help information.

-V --version
Show version information.