Skip to content

Commit e6c415e

Browse files
committed
Document the new color.* settings to colorize push errors/hints
Let's make it easier for users to find out how to customize these colors. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 0a99d05 commit e6c415e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Documentation/config.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,6 +1088,16 @@ clean.requireForce::
10881088
A boolean to make git-clean do nothing unless given -f,
10891089
-i or -n. Defaults to true.
10901090

1091+
color.advice::
1092+
A boolean to enable/disable color in hints (e.g. when a push
1093+
failed, see `advice.*` for a list). May be set to `always`,
1094+
`false` (or `never`) or `auto` (or `true`), in which case colors
1095+
are used only when the error output goes to a terminal. If
1096+
unset, then the value of `color.ui` is used (`auto` by default).
1097+
1098+
color.advice.hint::
1099+
Use customized color for hints.
1100+
10911101
color.branch::
10921102
A boolean to enable/disable color in the output of
10931103
linkgit:git-branch[1]. May be set to `always`,
@@ -1190,6 +1200,15 @@ color.pager::
11901200
A boolean to enable/disable colored output when the pager is in
11911201
use (default is true).
11921202

1203+
color.push::
1204+
A boolean to enable/disable color in push errors. May be set to
1205+
`always`, `false` (or `never`) or `auto` (or `true`), in which
1206+
case colors are used only when the error output goes to a terminal.
1207+
If unset, then the value of `color.ui` is used (`auto` by default).
1208+
1209+
color.push.error::
1210+
Use customized color for push errors.
1211+
11931212
color.showBranch::
11941213
A boolean to enable/disable color in the output of
11951214
linkgit:git-show-branch[1]. May be set to `always`,
@@ -1218,6 +1237,15 @@ color.status.<slot>::
12181237
status short-format), or
12191238
`unmerged` (files which have unmerged changes).
12201239

1240+
color.transport::
1241+
A boolean to enable/disable color when pushes are rejected. May be
1242+
set to `always`, `false` (or `never`) or `auto` (or `true`), in which
1243+
case colors are used only when the error output goes to a terminal.
1244+
If unset, then the value of `color.ui` is used (`auto` by default).
1245+
1246+
color.transport.rejected::
1247+
Use customized color when a push was rejected.
1248+
12211249
color.ui::
12221250
This variable determines the default value for variables such
12231251
as `color.diff` and `color.grep` that control the use of color

0 commit comments

Comments
 (0)