Skip to content

Commit d46f698

Browse files
LemmingAvalanchegitster
authored andcommitted
config: use --value instead of value-pattern
This option was introduced in a series of commits from fe3ccc7 (Merge branch 'ps/config-subcommands', 2024-05-15) and deprecated `value-pattern`. But `value-pattern` is still used throughout the doc. The deprecated modes have been quarantined in the “Deprecated Modes” section. So let’s only use `--value=<pattern>` in the rest of the doc. Acked-by: Patrick Steinhardt <[email protected]> Signed-off-by: Kristoffer Haugsbakk <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5ba6e6c commit d46f698

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Documentation/git-config.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ escaped.
2626

2727
Multiple lines can be added to an option by using the `--append` option.
2828
If you want to update or unset an option which can occur on multiple
29-
lines, a `value-pattern` (which is an extended regular expression,
29+
lines, `--value=<pattern>` (which is an extended regular expression,
3030
unless the `--fixed-value` option is given) needs to be given. Only the
3131
existing values that match the pattern are updated or unset. If
3232
you want to handle the lines that do *not* match the pattern, just
@@ -109,7 +109,7 @@ OPTIONS
109109

110110
--replace-all::
111111
Default behavior is to replace at most one line. This replaces
112-
all lines matching the key (and optionally the `value-pattern`).
112+
all lines matching the key (and optionally `--value=<pattern>`).
113113

114114
--append::
115115
Adds a new line to the option without altering any existing
@@ -209,10 +209,10 @@ See also <<FILES>>.
209209
Use `--no-value` to unset _<pattern>_.
210210

211211
--fixed-value::
212-
When used with the `value-pattern` argument, treat `value-pattern` as
212+
When used with `--value=<pattern>`, treat _<pattern>_ as
213213
an exact string instead of a regular expression. This will restrict
214214
the name/value pairs that are matched to only those where the value
215-
is exactly equal to the `value-pattern`.
215+
is exactly equal to _<pattern>_.
216216

217217
--type <type>::
218218
'git config' will ensure that any input or output is valid under the given

0 commit comments

Comments
 (0)