Cdif

cdif - context diff command

This project is maintained by kaz-utashiro

CDIF

is word context visualizer of DIFF output

for ANSI color terminal

cdif

Side-by-side view

power by SDIF command

default

International

Unicode

East Asian wide width character

Japanese Kanji/Hiragana/Katakana separation

japanese

Japanese syllable tokenizer

--mecab morphology

mecab

mecab

Using inside Emacs

emacs

NAME

cdif - word context diff

SYNOPSIS

cdif [cdif option] file1 file2

cdif [rcs options] [cdif options] file

cdif [cdif options] [diff-data]

Options:

    -c, -Cn         context diff
    -u, -Un         unified diff
    -i              ignore case
    -b              ignore trailing blank
    -w              ignore whitespace
    -t              expand tabs
    -T              initial tabs
    --rcs           use rcsdiff
    -r<rev>, -q     rcs options

    -B                  char-by-char comparison
    -W                  specify terminal width
    --diff=command      specify diff command
    --stat              show statistical information
    --colormap=s        specify color map
    --[no]color         color or not            (default true)
    --[no]256           ANSI 256 color mode     (default true)
    --[no]commandcolor  color for command line  (default true)
    --[no]markcolor     color for diff mark     (default true)
    --[no]textcolor     color for normal text   (default true)
    --[no]old           print old text          (default true)
    --[no]new           print new text          (default true)
    --[no]command       print diff command line (default true)
    --[no]unknown       print unknown line      (default true)

DESCRIPTION

cdif is a post-processor of the Unix diff command. It highlights deleted, changed and added words based on word context.

You may want to compare character-by-character rather than word-by-word. Option -B option can be used for that purpose.

If only one file is specified, cdif reads that file (stdin if no file) as a output from diff command.

Lines those don't look like diff output are simply ignored and printed.

OPTIONS

AUTHOR

Kazumasa Utashiro

https://github.com/kaz-utashiro/cdif

SEE ALSO

perl(1), diff(1), sdif(1), watchdiff(1)

BUGS

cdif is naturally not very fast because it uses normal diff command as a backend processor to compare words.

COPYRIGHT

Use and redistribution for ANY PURPOSE are granted as long as all copyright notices are retained. Redistribution with modification is allowed provided that you make your modified version obviously distinguishable from the original one. THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED.