Skip to content

Commit f6c75e3

Browse files
committed
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
2 parents 6b5688b + cd8e759 commit f6c75e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Documentation/git-config.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,9 @@ Valid `<type>`'s include:
240240
output. The optional `default` parameter is used instead, if
241241
there is no color configured for `name`.
242242
+
243-
`--type=color [--default=<default>]` is preferred over `--get-color`.
243+
`--type=color [--default=<default>]` is preferred over `--get-color`
244+
(but note that `--get-color` will omit the trailing newline printed by
245+
`--type=color`).
244246

245247
-e::
246248
--edit::

0 commit comments

Comments
 (0)