Skip to content

Commit 810b269

Browse files
committed
Merge branch 'jk/config-type-color-ends-with-lf' into next
"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 e1228ef + cd8e759 commit 810b269

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)