]> git.ipfire.org Git - thirdparty/git.git/commitdiff
config: use --value=<pattern> consistently
authorKristoffer Haugsbakk <code@khaugsbakk.name>
Tue, 1 Jul 2025 15:14:29 +0000 (17:14 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Jul 2025 17:28:41 +0000 (10:28 -0700)
This option was introduced in a series of commits from fe3ccc7aab (Merge
branch 'ps/config-subcommands', 2024-05-15).  But two styles were used
for the value provided to the option:

1. Synopsis: `--value=<value>`
2. Deprecated Modes: `--value=<pattern>`

(2) is also used in the synopsis on the command.

Use (2) consistently throughout since it’s a pattern in the general
case (`value` sounds more generic).

Acked-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-config.adoc
builtin/config.c

index e05bf813d46420da0e18e356fa6a7628365bae13..d3ddc53855538b1135478db36b20bb1e90bbc6ca 100644 (file)
@@ -10,9 +10,9 @@ SYNOPSIS
 --------
 [verse]
 'git config list' [<file-option>] [<display-option>] [--includes]
-'git config get' [<file-option>] [<display-option>] [--includes] [--all] [--regexp] [--value=<value>] [--fixed-value] [--default=<default>] <name>
-'git config set' [<file-option>] [--type=<type>] [--all] [--value=<value>] [--fixed-value] <name> <value>
-'git config unset' [<file-option>] [--all] [--value=<value>] [--fixed-value] <name>
+'git config get' [<file-option>] [<display-option>] [--includes] [--all] [--regexp] [--value=<pattern>] [--fixed-value] [--default=<default>] <name>
+'git config set' [<file-option>] [--type=<type>] [--all] [--value=<pattern>] [--fixed-value] <name> <value>
+'git config unset' [<file-option>] [--all] [--value=<pattern>] [--fixed-value] <name>
 'git config rename-section' [<file-option>] <old-name> <new-name>
 'git config remove-section' [<file-option>] <name>
 'git config edit' [<file-option>]
index f70d6354772259abf4d070e9c45379ee4d274cf3..706269647e595ba8ebbf55162baffc783e20bcc6 100644 (file)
@@ -17,9 +17,9 @@
 
 static const char *const builtin_config_usage[] = {
        N_("git config list [<file-option>] [<display-option>] [--includes]"),
-       N_("git config get [<file-option>] [<display-option>] [--includes] [--all] [--regexp] [--value=<value>] [--fixed-value] [--default=<default>] <name>"),
-       N_("git config set [<file-option>] [--type=<type>] [--all] [--value=<value>] [--fixed-value] <name> <value>"),
-       N_("git config unset [<file-option>] [--all] [--value=<value>] [--fixed-value] <name>"),
+       N_("git config get [<file-option>] [<display-option>] [--includes] [--all] [--regexp] [--value=<pattern>] [--fixed-value] [--default=<default>] <name>"),
+       N_("git config set [<file-option>] [--type=<type>] [--all] [--value=<pattern>] [--fixed-value] <name> <value>"),
+       N_("git config unset [<file-option>] [--all] [--value=<pattern>] [--fixed-value] <name>"),
        N_("git config rename-section [<file-option>] <old-name> <new-name>"),
        N_("git config remove-section [<file-option>] <name>"),
        N_("git config edit [<file-option>]"),
@@ -33,17 +33,17 @@ static const char *const builtin_config_list_usage[] = {
 };
 
 static const char *const builtin_config_get_usage[] = {
-       N_("git config get [<file-option>] [<display-option>] [--includes] [--all] [--regexp=<regexp>] [--value=<value>] [--fixed-value] [--default=<default>] <name>"),
+       N_("git config get [<file-option>] [<display-option>] [--includes] [--all] [--regexp=<regexp>] [--value=<pattern>] [--fixed-value] [--default=<default>] <name>"),
        NULL
 };
 
 static const char *const builtin_config_set_usage[] = {
-       N_("git config set [<file-option>] [--type=<type>] [--comment=<message>] [--all] [--value=<value>] [--fixed-value] <name> <value>"),
+       N_("git config set [<file-option>] [--type=<type>] [--comment=<message>] [--all] [--value=<pattern>] [--fixed-value] <name> <value>"),
        NULL
 };
 
 static const char *const builtin_config_unset_usage[] = {
-       N_("git config unset [<file-option>] [--all] [--value=<value>] [--fixed-value] <name>"),
+       N_("git config unset [<file-option>] [--all] [--value=<pattern>] [--fixed-value] <name>"),
        NULL
 };