{"thread":{"id":"64810","subject":"[PATCH] Documentation/config: fix replacement for --get-urlmatch","startedAt":"2026-01-15T11:08:39Z","lastAt":"2026-01-15T21:16:26Z","messageCount":2,"participants":["Pushkar Singh","Shreyansh Paliwal"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"533943","messageId":"20260115110832.15315-1-pushkarkumarsingh1970@gmail.com","threadId":"64810","inReplyTo":null,"subject":"[PATCH] Documentation/config: fix replacement for --get-urlmatch","fromName":"Pushkar Singh","fromEmail":"pushkarkumarsingh1970@gmail.com","sentAt":"2026-01-15T11:08:05Z","receivedAt":"2026-01-15T11:08:39Z","isPatch":true,"sender":{"key":"pushkarkumarsingh1970@gmail.com","avatar":"https://avatars.githubusercontent.com/u/173247767?v=4"},"body":"The documentation claims that --get-urlmatch is replaced by\n\n  git config get --all --show-names --url=<URL> <name>\n\nHowever, --url cannot be combined with --all, and this command\nfails in practice.\n\nUpdate the replacement to use only --url, which matches the\nactual behavior of --get-urlmatch.\n\nSigned-off-by: Pushkar Singh <pushkarkumarsingh1970@gmail.com>\n---\n Documentation/git-config.adoc | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/Documentation/git-config.adoc b/Documentation/git-config.adoc\nindex cc054fa7e1..ac3b536a15 100644\n--- a/Documentation/git-config.adoc\n+++ b/Documentation/git-config.adoc\n@@ -332,7 +332,7 @@ recommended to migrate to the new syntax.\n \tReplaced by `git config get --all --show-names --regexp <name-regexp>`.\n \n --get-urlmatch <name> <URL>::\n-\tReplaced by `git config get --all --show-names --url=<URL> <name>`.\n+\tReplaced by `git config get --url=<URL> <name>`.\n \n --get-color <name> [<default>]::\n \tReplaced by `git config get --type=color [--default=<default>] <name>`.\n-- \n2.43.0\n\n"},{"id":"533989","messageId":"20260115211609.17420-1-shreyanshpaliwalcmsmn@gmail.com","threadId":"64810","inReplyTo":"20260115110832.15315-1-pushkarkumarsingh1970@gmail.com","subject":"Re: [PATCH] Documentation/config: fix replacement for --get-urlmatch","fromName":"Shreyansh Paliwal","fromEmail":"shreyanshpaliwalcmsmn@gmail.com","sentAt":"2026-01-15T21:14:40Z","receivedAt":"2026-01-15T21:16:26Z","isPatch":true,"sender":{"key":"shreyanshpaliwalcmsmn@gmail.com","avatar":"https://avatars.githubusercontent.com/u/152720574?v=4"},"body":"> The documentation claims that --get-urlmatch is replaced by\n> \n>   git config get --all --show-names --url=<URL> <name>\n> \n> However, --url cannot be combined with --all, and this command\n> fails in practice.\n> \n> Update the replacement to use only --url, which matches the\n> actual behavior of --get-urlmatch.\n> \n> Signed-off-by: Pushkar Singh <pushkarkumarsingh1970@gmail.com>\n> ---\n>  Documentation/git-config.adoc | 2 +-\n>  1 file changed, 1 insertion(+), 1 deletion(-)\n> \n> diff --git a/Documentation/git-config.adoc b/Documentation/git-config.adoc\n> index cc054fa7e1..ac3b536a15 100644\n> --- a/Documentation/git-config.adoc\n> +++ b/Documentation/git-config.adoc\n> @@ -332,7 +332,7 @@ recommended to migrate to the new syntax.\n>  \tReplaced by `git config get --all --show-names --regexp <name-regexp>`.\n>  \n>  --get-urlmatch <name> <URL>::\n> -\tReplaced by `git config get --all --show-names --url=<URL> <name>`.\n> +\tReplaced by `git config get --url=<URL> <name>`.\n>  \n>  --get-color <name> [<default>]::\n>  \tReplaced by `git config get --type=color [--default=<default>] <name>`.\n\nThanks for working on this, the change looks good to me.\nI was also looking into this based on [1] and was planning\nto send a similar fix, so I’m glad to see that it has been addressed.\n\nWhile digging into this, I noticed that neither the documentation\nnor the help output currently mention that --url cannot be combined with\noptions like --all, --default, or --regexp, even though there are checks\nin code to prevent that.\nI was thinking that might be added in a follow-up.\nI also had a thought that we could modify the synopsis of git config as well,\nshowing two versions of git get, regular lookup and with --url,\nnot sure about the plausibility of this though.\n\nBest,\nShreyansh\n\n[1]- https://lore.kernel.org/git/CAGJzqs=0Zr2iqsTUZdjdwpbtaS7kuBOf=E_XT=vbdfyNTKkjNQ@mail.gmail.com/t/#u\n"}]}