App-sdif
view release on metacpan or search on metacpan
script/sdif view on Meta::CPAN
for B<--unit=mecab>. Consult L<cdif> manual for detail.
Use B<--cdifopts> to set other options.
=item B<--diff>=I<command>
Any command can be specified as a diff command to be used. Piping
output to B<sdif> is easier unless you want to get whole text.
=item B<--diffopts>=I<option>
Specify options for back-end B<diff> command.
=item B<--mark>=I<position>
Specify the position for a mark. Choose from C<left>, C<right>,
C<center>, C<side> or C<no>. Default is C<center>.
=item B<--column>=I<order>
Specify the order of each column by B<O> (1: old), B<N> (2: new) and
B<M> (3: merged). Default order is "ONM" or "123". If you want to
show new file on left side and old file in right side, use like:
$ sdif --column NO
Next example show merged file on left-most column for diff3 data.
$ sdif --column MON
Next two commands produce same output.
$ git diff v1 v2 v3 | sdif --column 312
$ git diff v3 v1 v2 | sdif
=item B<-->[B<no->]B<color>
Use ANSI color escape sequence for output. Default is true.
=item B<-->[B<no->]B<256>
Use ANSI 256 color mode. Default is true.
=item B<--colortable>[=6,12,24]
Show table of ANSI 216 colors, when used without parameter.
Given the parameters, it displays 6x6, 12x12, and 24x24 color
matrices, respectively.
=item B<-v>, B<--view>
Viewer mode. Display each file in straightforward order. Without
this option, unchanged lines are placed at the same position.
=item B<-V>, B<--parallel>
=item B<-V3>, B<--parallel=3>
B<sdif> processes only looks-like-diff-output data and print anything
else as is to standard out. Option C<-V> or C<--parallel> makes
unknown text as common to old and new data. This is useful to see
file including conflict marker data compatible with L<git(1)>.
This option takes an optional number parameter and 2 is assumed when
omitted. Other than 2, only 3 is an effective value. L<diff3(1)>
command can produce conflict marker style output with C<-m> option.
So you can use like this:
$ diff3 -m A B C | sdif -V3
=item B<--ambiguous>=I<width_spec>
Specify the way to treat Unicode ambiguous width characters. Default
value is C<narrow>.
=over 4
=item B<detect> or B<auto>
Detect from user's locate. Set C<wide> when used in CJK environment.
=item B<wide> or B<full>
Treat ambiguous characters as wide.
=item B<narrow> or B<half>
Treat ambiguous characters as narrow.
=back
=item B<-->[B<no->]B<prefix>
Understand prefix for diff output including B<git> B<--graph> option.
True by default.
=item B<--prefix-pattern>=I<pattern>
Specify prefix pattern in regex. Default pattern is:
(?:\| )*(?: )?
This pattern matches B<git> graph style and whitespace indented diff
output.
=item B<-->[B<no->]B<lenience>
Suppress warning message for unexpected input from diff command. True
by default.
=item B<--limit> I<key>=I<value>
Set resource limits. Available keys are:
=over 4
=item B<line>=I<#>
Limit the number of lines displayed for add/delete sections. When a
( run in 0.613 second using v1.01-cache-2.11-cpan-39bf76dae61 )