{"thread":{"id":"44097","subject":"[PATCH] Documentation/config: default for color.* is color.ui","startedAt":"2016-09-16T07:33:14Z","lastAt":"2016-09-16T07:33:14Z","messageCount":1,"participants":["Matthieu Moy"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"302048","messageId":"20160916073248.30285-1-Matthieu.Moy@imag.fr","threadId":"44097","inReplyTo":"nrfihd@blaine.gmane.org","subject":"[PATCH] Documentation/config: default for color.* is color.ui","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@imag.fr","sentAt":"2016-09-16T07:32:48Z","receivedAt":"2016-09-16T07:33:14Z","isPatch":true,"sender":{"key":"git@matthieu-moy.fr","avatar":"https://avatars.githubusercontent.com/u/14709?v=4"},"body":"Since 4c7f181 (make color.ui default to 'auto', 2013-06-10), the\ndefault for color.* when nothing is set is 'auto' and we still claimed\nthat the default was 'false'. Be more precise by saying explicitly\nthat the default is to follow color.ui, and recall that the default is\n'auto' to avoid one indirection for the reader.\n\nSigned-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>\n---\n Documentation/config.txt | 18 ++++++++++++------\n 1 file changed, 12 insertions(+), 6 deletions(-)\n\ndiff --git a/Documentation/config.txt b/Documentation/config.txt\nindex 32f065c..66429fb 100644\n--- a/Documentation/config.txt\n+++ b/Documentation/config.txt\n@@ -953,7 +953,8 @@ color.branch::\n \tA boolean to enable/disable color in the output of\n \tlinkgit:git-branch[1]. May be set to `always`,\n \t`false` (or `never`) or `auto` (or `true`), in which case colors are used\n-\tonly when the output is to a terminal. Defaults to false.\n+\tonly when the output is to a terminal. If unset, then the\n+\tvalue of `color.ui` is used (`auto` by default).\n \n color.branch.<slot>::\n \tUse customized color for branch coloration. `<slot>` is one of\n@@ -968,7 +969,8 @@ color.diff::\n \tlinkgit:git-log[1], and linkgit:git-show[1] will use color\n \tfor all patches.  If it is set to `true` or `auto`, those\n \tcommands will only use color when output is to the terminal.\n-\tDefaults to false.\n+\tIf unset, then the value of `color.ui` is used (`auto` by\n+\tdefault).\n +\n This does not affect linkgit:git-format-patch[1] or the\n 'git-diff-{asterisk}' plumbing commands.  Can be overridden on the\n@@ -991,7 +993,8 @@ color.decorate.<slot>::\n color.grep::\n \tWhen set to `always`, always highlight matches.  When `false` (or\n \t`never`), never.  When set to `true` or `auto`, use color only\n-\twhen the output is written to the terminal.  Defaults to `false`.\n+\twhen the output is written to the terminal.  If unset, then the\n+\tvalue of `color.ui` is used (`auto` by default).\n \n color.grep.<slot>::\n \tUse customized color for grep colorization.  `<slot>` specifies which\n@@ -1024,7 +1027,8 @@ color.interactive::\n \tand displays (such as those used by \"git-add --interactive\" and\n \t\"git-clean --interactive\"). When false (or `never`), never.\n \tWhen set to `true` or `auto`, use colors only when the output is\n-\tto the terminal. Defaults to false.\n+\tto the terminal. If unset, then the value of `color.ui` is\n+\tused (`auto` by default).\n \n color.interactive.<slot>::\n \tUse customized color for 'git add --interactive' and 'git clean\n@@ -1040,13 +1044,15 @@ color.showBranch::\n \tA boolean to enable/disable color in the output of\n \tlinkgit:git-show-branch[1]. May be set to `always`,\n \t`false` (or `never`) or `auto` (or `true`), in which case colors are used\n-\tonly when the output is to a terminal. Defaults to false.\n+\tonly when the output is to a terminal. If unset, then the\n+\tvalue of `color.ui` is used (`auto` by default).\n \n color.status::\n \tA boolean to enable/disable color in the output of\n \tlinkgit:git-status[1]. May be set to `always`,\n \t`false` (or `never`) or `auto` (or `true`), in which case colors are used\n-\tonly when the output is to a terminal. Defaults to false.\n+\tonly when the output is to a terminal. If unset, then the\n+\tvalue of `color.ui` is used (`auto` by default).\n \n color.status.<slot>::\n \tUse customized color for status colorization. `<slot>` is\n-- \n2.10.0.rc0.1.g07c9292\n\n"}]}