App::sdif - sdif and family tools, cdif and watchdiff
sdif f1 f2 diff -c f1 f2 | cdif git diff | sdif -n watchdiff df
sdif-tools are composed by sdif and related tools including cdif and watchdiff.
sdif prints diff output in side-by-side format.
cdif adds visual effect for diff output, comparing lines in word-by-word, or character-by-character bases.
watchdiff calls specified command repeatedly, and print the output with visual effect to emphasize modified part.
See individual manual of each command for detail.
$ cpanm App::sdif
Those are sample configurations using sdif family in git environment. You need to install mecab command to use --mecab option.
~/.gitconfig [pager] log = sdif | less show = sdif | less diff = sdif | less ~/.sdifrc option default -n --margin=4 ~/.cdifrc option default --mecab ~/.profile export LESS="-cR" export LESSANSIENDCHARS="mK"
You can write everything in ~/.gitconfig:
[pager] log = sdif -n --margin=4 --mecab | env LESSANSIENDCHARS=mK less -cR show = sdif -n --margin=4 --mecab | env LESSANSIENDCHARS=mK less -cR diff = sdif -n --margin=4 --mecab | env LESSANSIENDCHARS=mK less -cR
sdif, cdif, watchdiff
Getopt::EX
Kazumasa Utashiro
Copyright 1992- Kazumasa Utashiro.
These commands and libraries are free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install App::sdif, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::sdif
CPAN shell
perl -MCPAN -e shell install App::sdif
For more information on module installation, please visit the detailed CPAN module installation guide.