]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Documentation/config: fix replacement for --get-urlmatch
authorPushkar Singh <pushkarkumarsingh1970@gmail.com>
Thu, 15 Jan 2026 11:08:05 +0000 (11:08 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Jan 2026 13:50:55 +0000 (05:50 -0800)
The documentation claims that --get-urlmatch is replaced by

  git config get --all --show-names --url=<URL> <name>

However, --url cannot be combined with --all, and this command
fails in practice.

Update the replacement to use only --url, which matches the
actual behavior of --get-urlmatch.

Signed-off-by: Pushkar Singh <pushkarkumarsingh1970@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-config.adoc

index 936e0c5130fe7d67f645501fbb9e70b94b437f54..4602be75508e4fdc05352a965f2d0bf22500214b 100644 (file)
@@ -317,7 +317,7 @@ recommended to migrate to the new syntax.
        Replaced by `git config get --all --show-names --regexp <name-regexp>`.
 
 --get-urlmatch <name> <URL>::
-       Replaced by `git config get --all --show-names --url=<URL> <name>`.
+       Replaced by `git config get --url=<URL> <name>`.
 
 --get-color <name> [<default>]::
        Replaced by `git config get --type=color [--default=<default>] <name>`.