@@ -706,9 +706,16 @@ second is the background. The position of the attribute, if any,
706
706
doesn't matter.
707
707
708
708
color.diff::
709
- When set to `always`, always use colors in patch.
710
- When false (or `never`), never. When set to `true` or `auto`, use
711
- colors only when the output is to the terminal. Defaults to false.
709
+ Whether to use ANSI escape sequences to add color to patches.
710
+ If this is set to `always`, linkgit:git-diff[1],
711
+ linkgit:git-log[1], and linkgit:git-show[1] will use color
712
+ for all patches. If it is set to `true` or `auto`, those
713
+ commands will only use color when output is to the terminal.
714
+ Defaults to false.
715
+ +
716
+ This does not affect linkgit:git-format-patch[1] nor the
717
+ 'git-diff-{asterisk}' plumbing commands. Can be overridden on the
718
+ command line with the `--color[=<when>]` option.
712
719
713
720
color.diff.<slot>::
714
721
Use customized color for diff colorization. `<slot>` specifies
@@ -794,11 +801,15 @@ color.status.<slot>::
794
801
color.branch.<slot>.
795
802
796
803
color.ui::
797
- When set to `always`, always use colors in all git commands which
798
- are capable of colored output. When false (or `never`), never. When
799
- set to `true` or `auto`, use colors only when the output is to the
800
- terminal. When more specific variables of color.* are set, they always
801
- take precedence over this setting. Defaults to false.
804
+ This variable determines the default value for variables such
805
+ as `color.diff` and `color.grep` that control the use of color
806
+ per command family. Its scope will expand as more commands learn
807
+ configuration to set a default for the `--color` option. Set it
808
+ to `always` if you want all output not intended for machine
809
+ consumption to use color, to `true` or `auto` if you want such
810
+ output to use color when written to the terminal, or to `false` or
811
+ `never` if you prefer git commands not to use color unless enabled
812
+ explicitly with some other configuration or the `--color` option.
802
813
803
814
commit.status::
804
815
A boolean to enable/disable inclusion of status information in the
0 commit comments