9
9
--------
10
10
[verse]
11
11
'git range-diff' [--color=[<when>]] [--no-color] [<diff-options>]
12
- [--dual-color] [--creation-factor=<factor>]
12
+ [--no- dual-color] [--creation-factor=<factor>]
13
13
( <range1> <range2> | <rev1>...<rev2> | <base> <rev1> <rev2> )
14
14
15
15
DESCRIPTION
@@ -31,11 +31,14 @@ all of their ancestors have been shown.
31
31
32
32
OPTIONS
33
33
-------
34
- --dual-color::
35
- When the commit diffs differ, recreate the original diffs'
36
- coloring, and add outer -/+ diff markers with the *background*
37
- being red/green to make it easier to see e.g. when there was a
38
- change in what exact lines were added.
34
+ --no-dual-color::
35
+ When the commit diffs differ, `git range-diff` recreates the
36
+ original diffs' coloring, and adds outer -/+ diff markers with
37
+ the *background* being red/green to make it easier to see e.g.
38
+ when there was a change in what exact lines were added. This is
39
+ known to `range-diff` as "dual coloring". Use `--no-dual-color`
40
+ to revert to color all lines according to the outer diff markers
41
+ (and completely ignore the inner diff when it comes to color).
39
42
40
43
--creation-factor=<percent>::
41
44
Set the creation/deletion cost fudge factor to `<percent>`.
@@ -118,15 +121,16 @@ line (with a perfect match) is yellow like the commit header of `git
118
121
show`'s output, and the third line colors the old commit red, the new
119
122
one green and the rest like `git show`'s commit header.
120
123
121
- The color-coded diff is actually a bit hard to read, though, as it
122
- colors the entire lines red or green. The line that added "What is
123
- unexpected" in the old commit, for example, is completely red, even if
124
- the intent of the old commit was to add something.
124
+ A naive color-coded diff of diffs is actually a bit hard to read,
125
+ though, as it colors the entire lines red or green. The line that added
126
+ "What is unexpected" in the old commit, for example, is completely red,
127
+ even if the intent of the old commit was to add something.
125
128
126
- To help with that, use the `--dual-color` mode. In this mode, the diff
127
- of diffs will retain the original diff colors, and prefix the lines with
128
- -/+ markers that have their *background* red or green, to make it more
129
- obvious that they describe how the diff itself changed.
129
+ To help with that, `range` uses the `--dual-color` mode by default. In
130
+ this mode, the diff of diffs will retain the original diff colors, and
131
+ prefix the lines with -/+ markers that have their *background* red or
132
+ green, to make it more obvious that they describe how the diff itself
133
+ changed.
130
134
131
135
132
136
Algorithm
0 commit comments