Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/color-diff-doc'
author
Junio C Hamano
<gitster@pobox.com>
Tue, 19 Mar 2013 19:11:31 +0000
(12:11 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 19 Mar 2013 19:11:32 +0000
(12:11 -0700)
The --color[=<when>] option to the diff family was documented in a
confusing way.
* jc/color-diff-doc:
diff-options: unconfuse description of --color
Documentation/diff-options.txt
patch
|
blob
|
history
raw
(from parent 1:
048d4d9
)
diff --git
a/Documentation/diff-options.txt
b/Documentation/diff-options.txt
index 869d965a3b93e25c71fd4c81a7f7742ff2222cfe..104579dc75128811e475d408035569ac09f3283b 100644
(file)
--- a/
Documentation/diff-options.txt
+++ b/
Documentation/diff-options.txt
@@
-195,8
+195,8
@@
any of those replacements occurred.
--color[=<when>]::
Show colored diff.
-
The value must be `always` (the default for `<when>`), `never`, or `auto
`.
-
The default value is `never
`.
+
`--color` (i.e. without '=<when>') is the same as `--color=always
`.
+
'<when>' can be one of `always`, `never`, or `auto
`.
ifdef::git-diff[]
It can be changed by the `color.ui` and `color.diff`
configuration settings.