git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Feature request: partial URL matching for credential config

From
M Hickford <mirth.hickford@gmail.com>
Date
Sep 30, 2025, 18:59 UTC
Message-ID
<CAGJzqskzfpyobvV1abTr9qUgGWLuhfTE4FdbgKJy4HZgfO-oLw@mail.gmail.com>
In-Reply-To
<aNvxVOUyijGaJfsr@fruit.crustytoothpaste.net>

On Tue, 30 Sept 2025 at 16:03, brian m. carlson <sandals@crustytoothpaste.net> wrote:

Show 11 quoted lines
>
> On 2025-09-27 at 18:48:46, M Hickford wrote:
> > Any thoughts on adding support for URL prefix matching?
> >
> > Example syntax could be credential.https://example.com/org1/*.key
> > (explicit wildcard) or credential.https://example.com/org1/.key
> > (implicit wildcard)
>
> I think I may have added support for this (using the urlmatch patterns)
> but didn't document it[0].  I see some tests for it in t0300.  Have you
> tried it?
Thanks Brian for your reply. You're right, it already works as desired:
     $ git -c credential.https://example.com/org.username=bingo config
get --url=https://example.com/org/repo.git credential.username
     bingo
It has to be a path prefix, not just a string prefix, which is nice:
     $ git -c credential.https://example.com/org.username=bingo config
get --url=https://example.com/organ/repo.git credential.username
Show 5 quoted lines
>
> Regardless, I believe it's a useful feature that we should have.
>
> If, perchance, I did add it and it's still around, would you be willing
> to write some documentation for it?
I shall send a patch with documentation and expanded tests.
Show 6 quoted lines
>
> [0] I believe Dscho graciously helped fix a few bugs in my changes,
> which I appreciate.
> --
> brian m. carlson (they/them)
> Toronto, Ontario, CA
Previous: brian m. carlson
Message 4 of 4 in “Feature request: partial URL matching for credential config”
  1. M HickfordSep 27, 2025
  2. M HickfordSep 28, 2025
  3. brian m. carlsonSep 30, 2025
  4. M HickfordSep 30, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.