summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-03-20 15:16:07 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-03-20 15:16:08 +0900
commitf6c75e392e2d8426b622408ae74f0e2b545609a7 (patch)
tree324ea002260857c673adbaa7384c057b5f93c855 /Documentation
parentMerge branch 'ma/clear-repository-format' (diff)
parentconfig: document --type=color output is a complete line (diff)
downloadtgif-f6c75e392e2d8426b622408ae74f0e2b545609a7.tar.xz
Merge branch 'jk/config-type-color-ends-with-lf'
"git config --type=color ..." is meant to replace "git config --get-color" but there is a slight difference that wasn't documented, which is now fixed. * jk/config-type-color-ends-with-lf: config: document --type=color output is a complete line
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-config.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/git-config.txt b/Documentation/git-config.txt
index 1bfe9f56a7..d0b9c50d20 100644
--- a/Documentation/git-config.txt
+++ b/Documentation/git-config.txt
@@ -240,7 +240,9 @@ Valid `<type>`'s include:
output. The optional `default` parameter is used instead, if
there is no color configured for `name`.
+
-`--type=color [--default=<default>]` is preferred over `--get-color`.
+`--type=color [--default=<default>]` is preferred over `--get-color`
+(but note that `--get-color` will omit the trailing newline printed by
+`--type=color`).
-e::
--edit::