Skip to content

Commit 82b955c

Browse files
committed
Merge branch 'jc/color-diff-doc' into maint-1.8.1
The "--color=<when>" argument to the commands in the diff family was described poorly. * jc/color-diff-doc: diff-options: unconfuse description of --color
2 parents 617cf93 + 3d0e75f commit 82b955c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/diff-options.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ any of those replacements occurred.
175175

176176
--color[=<when>]::
177177
Show colored diff.
178-
The value must be `always` (the default for `<when>`), `never`, or `auto`.
179-
The default value is `never`.
178+
`--color` (i.e. without '=<when>') is the same as `--color=always`.
179+
'<when>' can be one of `always`, `never`, or `auto`.
180180
ifdef::git-diff[]
181181
It can be changed by the `color.ui` and `color.diff`
182182
configuration settings.

0 commit comments

Comments
 (0)