App-ccdiff
view release on metacpan or search on metacpan
=item --reverse -r
Reverse/invert the foreground and background for the colored indicators.
If the foreground color has C<bold>, it will be stripped from the new background
color.
=item --swap -s
Swap the colors for new and old.
=item --list-colors
List available colors and exit.
=item --no-colors
Disable all colors. Useful for redirecting the diff output to a file that is to
be included in documentation.
This is the default if the environment variable C<$NO_COLOR> has a true value or
if the environment variable C<$CLICOLOR> is set to a false value. If set,
C<$CLICOLOR_FORCE> will overrule the default of C<$NO_COLOR>.
=item --old=color
Define the foreground color for deleted text.
=item --new=color
Define the foreground color for added text.
=item --bg=color
Define the background color for changed text.
=item --index --idx -I
Prefix position indicators with an index.
[001] 5,5c5,5
-Sat Dec 18 07:08:33 1998,I.O.D.U.,,756194433,1442539
+Sat Dec 18 07:00:33 1993,I.O.D.U.,,756194433,1442539
If a positive number is passed (C<--index=4> or C<-I 4>), display just the
chunk with that index, using the C<verbose> color:
This is useful in combination with C<--verbose>.
=item --threshold=2 -t 2
Defines the number of lines a change block may differ before the fall-back of
horizontal diff to vertical diff.
If a chunk describes a change, and the number of lines in the original block
has fewer or more lines than the new block and that difference exceeds this
threshold, C<ccdiff> will fall-back to vertical diff.
=item --heuristics=n -h n
Defines the percentage of character-changes a change block may differ before
the fall-back of horizontal diff to vertical diff.
This percentage is calculated as C<(characters removed + characters added) /
(2 * characters unchanged))>.
=item --ellipsis=n -e n
Defines the number of characters to keep on each side of a horizontal-equal
segment. The default is C<0>, meaning do not compress.
If set to a positive number, and the length of a segment of equal characters
inside a horizontal diff is longer than twice this value, the middle part is
replaced with C<â U02508 \N{BOX DRAWINGS LIGHT QUADRUPLE DASH HORIZONTAL}>
(instead of ⦠U02026, as HORIZONTAL ELLIPSIS does not stand out enough).
With C<-u0me3> that would be like
5,5c5,5
-Satâ07:08:33â 1998,I.â539
- â¼ â¼
+Satâ07:00:33â 1993,I.â539
+ â² â²
With C<-u0e3 -v2> like
5,5c5,5
-Satâ¤9â¦07:0â±0â°:33 199â±3â°,I.â¤23â¦539
- -- verbose : DIGIT ZERO, DIGIT THREE
+Satâ¤9â¦07:0â±8â°:33 199â±8â°,I.â¤23â¦539
+ -- verbose : DIGIT EIGHT, DIGIT EIGHT
The text used for the replaced text can be defined in your configuration file
as C<chr_eli> and/or C<chr_eli_v>.
=item --ignore-case -i
Ignore case on comparison.
=item --ignore-all-space -w
Ignore all white-space changes. This will set all options C<-b>, C<-Z>, C<-E>,
and C<-B>.
=item --ignore-trailing-space -Z
Ignore changes in trailing white-space (tabs and spaces).
=item --ignore-ws|ignore-space-change -b
Ignore changes in horizontal white-space (tabs and spaces). This does not
include white-space changes that split non-white-space or remove white-space
between two non-white-space elements.
=item --ignore-tab-expansion -E
NYI
=item --ignore-blank-lines -B
B<Just Partly Implemented> (WIP)
=back
verbose_color
verbose-colour
verbose_colour
=item utf8 (-U)
utf8 : yes
Defines whether all I/O is to be interpreted as UTF-8. The default is C<no>.
This option may also be specified as
unicode
utf
utf-8
=item index (-I)
index : no
Defines if the position indication for a change chunk is prefixed with an
index number. The default is C<no>. The index is 1-based.
Without this option, the position indication would be like
5,5c5,5
19,19d18
42a42,42
with this option, it would be
[001] 5,5c5,5
[002] 19,19d18
[005] 42a42,42
When this option contains a positive integer, C<ccdiff> will only show the
diff chunk with that index.
=item emacs
emacs : no
If this option is yes/true, calling C<ccdiff> with just one single argument,
and that argument being an existing file, the arguments will act as
$ ccdiff file~ file
if file~ exists.
=item threshold (-t)
threshold : 2
Defines the number of lines a change block may differ before the fall-back of
horizontal diff to vertical diff.
=item heuristics (-h)
heuristics : 40
Defines the percentage of character-changes a change block may differ before
the fall-back of horizontal diff to vertical diff. The default is undefined,
meaning no fallback based on heuristics.
=item ellipsis (-e)
ellipsis : 0
Defines the number of characters to keep on each side of a horizontal-equal
segment. The default is C<0>, meaning to not compress. See also C<chr_eli>.
=item chr_old
chr_old : U+25BC
Defines the character used to indicate the position of removed text on the
line below the text when option C<-m> is in effect.
=item chr_new
chr_new : U+25B2
Defines the character used to indicate the position of added text on the
line below the text when option C<-m> is in effect.
=item chr_cml
chr_cml : U+21B1
Defines the character used to indicate the starting position of changed text
in a line when verbose level is 3 and up.
=item chr_cmr
chr_cmr : U+21B0
Defines the character used to indicate the ending position of changed text
in a line when verbose level is 3 and up.
=item chr_eli
chr_eli : U+2508
Defines the character used to indicate omitted text in large unchanged text
when C<--ellipsis>/C<-e> is in effect.
This character is not equally well visible on all terminals or in all fonts,
so you might want to change it to something that stands out better in your
environment. Possible suggestions:
⦠U+2026 HORIZONTAL ELLIPSIS
â´ U+2034 TRIPLE PRIME
â· U+2037 REVERSED TRIPLE PRIME
â U+2194 LEFT RIGHT ARROW
â U+21ad LEFT RIGHT WAVE ARROW
â® U+21ae LEFT RIGHT ARROW WITH STROKE
â¹ U+21b9 LEFTWARDS ARROW TO BAR OVER RIGHTWARDS ARROW TO BAR
â U+21c4 RIGHTWARDS ARROW OVER LEFTWARDS ARROW
â U+21c6 LEFTWARDS ARROW OVER RIGHTWARDS ARROW
â U+21ce LEFT RIGHT DOUBLE ARROW WITH STROKE
â U+21d4 LEFT RIGHT DOUBLE ARROW
( run in 1.737 second using v1.01-cache-2.11-cpan-39bf76dae61 )