Skip to content

Commit ac9f71c

Browse files
felipecgitster
authored andcommitted
git config: clarify --add and --get-color
Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3e1629f commit ac9f71c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Documentation/git-config.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ OPTIONS
6969

7070
--add::
7171
Adds a new line to the option without altering any existing
72-
values. This is the same as providing '^$' as the value_regex.
72+
values. This is the same as providing '^$' as the value_regex
73+
in `--replace-all`.
7374

7475
--get::
7576
Get the value for a given key (optionally filtered by a regex
@@ -155,7 +156,7 @@ See also <<FILES>>.
155156
When the color setting for `name` is undefined, the command uses
156157
`color.ui` as fallback.
157158

158-
--get-color name default::
159+
--get-color name [default]::
159160

160161
Find the color configured for `name` (e.g. `color.diff.new`) and
161162
output it as the ANSI color escape sequence to the standard

0 commit comments

Comments
 (0)