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

Re: [PATCH v1 0/3] packfile-uri: http and https as default value of `--uri-protocol`

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Aug 21, 2021, 08:10 UTC
Message-ID
<87czq7gqli.fsf@evledraar.gmail.com>
In-Reply-To
<cover.1628845748.git.dyroneteng@gmail.com>
On Fri, Aug 13 2021, Teng Long wrote:
> The origin is from the reply by Ævar Arnfjörð Bjarmason:
>
>     https://public-inbox.org/git/87a6m9ru85.fsf@evledraar.gmail.com

Thanks, I left some comments, see in particular the one on 1/3, i.e. maybe I'm confused about the goals here.

I think the goal here makes sense, but that a better way to do this is to simply add a transfer.packfileURI setting, a boolean that defaults to true. See a similar transfer.bundleURI in a related series of mine: https://lore.kernel.org/git/RFC-patch-07.13-f0e4052de4-20210805T150534Z-avarab@gmail.com/

I.e. in that series I also make use of fetch.uriProtocols to configure bundle-uri, so if it lands it'll be confusing to have a know to tweak bundle-uri, but not packfile-uri.

But even without it I think it's a lot less confusing to start introdudcing client-specific settings for things we enable/disable in the protocol explicitly, rather than implicitly by (in this case) setting the allowed list of protocols.

So that transfer.{bundleURI,packfileURI}=[bool] suggestion, or perhaps even a more generic setting for directly turning on or off capabilities without having to introduce config handling for each one. E.g. transferCapability.{bundle,packfile}-uri.disable=true. I.e. have serve.c and friends loop through transferCapability.*.disable and handle things accordingly on the client.

Previous: Teng Long
Message 7 of 7 in “packfile-uri: http and https as default value of `--uri-protocol`”
  1. 0/3 packfile-uri: http and https as default value of `--uri-protocol`Teng Long, Aug 13, 2021
  2. 1/3 packfile-uri: http and https as default value of `--uri-protocol`Teng Long, Aug 13, 2021
  3. Ævar Arnfjörð BjarmasonAug 21, 2021
  4. 2/3 git-pack-objects.txt: introduce `--uri-protocol` optionTeng Long, Aug 13, 2021
  5. Ævar Arnfjörð BjarmasonAug 21, 2021
  6. 3/3 t5702: `fetch.uriprotocols` is configured without valueTeng Long, Aug 13, 2021
  7. Ævar Arnfjörð BjarmasonAug 21, 2021

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.