CWDIFF

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLES
AUTHOR
REPORTING BUGS
COPYRIGHT

NAME

cwdiff − manual page for cwdiff 0.4.0, 12.11.15

SYNOPSIS

cwdiff [OPTIONS] FILE1 FILE2

DESCRIPTION

A colorized version of (w)diff, which can be used a wrapper script, too.

OPTIONS

−f, −−filter

Act as a wdiff color filter only and don’t execute diff/wdiff internally, just colorize input (no ARGS = read from stdin)

−d, −−diff

Preprocess input with diff and before giving it to wdiff (very useful for dirs). Option can be used in combination with −−filter option meaning input is a patch.

−D, −−diffonly

Process input with diff, but NOT with wdiff, so cwdiff basically acts like a colorized version of diff. Option can be used in combination with −−filter option meaning input is a patch.

−−diffopts XXX

Change options given to diff. The default is ’−−new−file −−unified −−show−c−function −−recursive’.

−−ab

Replace common trunc of dirname by ’a’ and ’b’

−−no−color

Disable color

−−

Stop parsing options

−h, −−help

Show this help

−v, −−version

Show version

EXAMPLES

cwdiff −d dir1 dir2

Compare two directories

cwdiff file1 file2

Compare two files

cwdiff −−ab −D dir1 dir2

VCS like output from compaing two directories

wdiff file1 file2 | cwdiff −f

Colorize the output of wdiff

diff −u file1 file2 | cwdiff −D −f

Colorize the output of diff

AUTHOR

Written by C. Junghans <junghans@votca.org>

REPORTING BUGS

Report bugs and comments at https://github.com/junghans/cwdiff/issues or junghans@votca.org

COPYRIGHT

Copyright © 2009−2015 Christoph Junghans
This is free software: you are free to change and redistribute it. License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl2.html> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.