]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-config.1: remove value from positional args in unset usage
authorJosh Heinrichs <joshiheinrichs@gmail.com>
Tue, 8 Oct 2024 14:29:20 +0000 (08:29 -0600)
committerJunio C Hamano <gitster@pobox.com>
Wed, 9 Oct 2024 06:35:45 +0000 (23:35 -0700)
The synopsis for `git config unset` mentions two positional arguments:
`<name>` and `<value>`. While the first argument is correct, the second
is not. Users are expected to provide the value via `--value=<value>`.

Remove the positional argument. The `--value=<value>` option is already
documented correctly, so this is all we need to do to fix the
documentation.

Signed-off-by: Josh Heinrichs <joshiheinrichs@gmail.com>
Reviewed-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-config.txt
builtin/config.c

index 7f81fbbea83a6e6ab5649522382d7e2821c4af57..3e420177c1599d0d1e0ba0124d4f2e79c3ea8ee7 100644 (file)
@@ -12,7 +12,7 @@ SYNOPSIS
 '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> <value>
+'git config unset' [<file-option>] [--all] [--value=<value>] [--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 d8fd3def0efdae49b6fadf43dac7624a0cc78c87..cba702210815b716a5c6c93ebb69d8c485901e43 100644 (file)
@@ -19,7 +19,7 @@ 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> <value>"),
+       N_("git config unset [<file-option>] [--all] [--value=<value>] [--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>]"),
@@ -43,7 +43,7 @@ static const char *const builtin_config_set_usage[] = {
 };
 
 static const char *const builtin_config_unset_usage[] = {
-       N_("git config unset [<file-option>] [--all] [--value=<value>] [--fixed-value] <name> <value>"),
+       N_("git config unset [<file-option>] [--all] [--value=<value>] [--fixed-value] <name>"),
        NULL
 };