Re: [PATCH] fetch, clone: add fetch.blobSizeLimit config
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 2, 2026, 18:57 UTC
- Message-ID
- <xmqq342i12ky.fsf@gitster.g>
- In-Reply-To
- <aaV6PLJCrpb2mQnq@pks.im>
Patrick Steinhardt <ps@pks.im> writes:
Show 10 quoted lines
> I'm not sure that we should make blob size limiting the default. The > problem with specifying a limit is that this is comparatively expensive > to compute on the server side: we have to look up each blob so that we > can determine its size. Unfortunately, such requests cannot (currently) > be optimized via for example bitmaps, or any other cache that we have. > ... > Another question to consider: is it really sensible to set this setting > globally? It is very much dependent on the forge that you're connecting > to, as forges may not even allow object filters at all, or only a subset > of them.
Both are good questions, but to affect "clone" you'd need either "git -c that.variable=setting clone" or have it in ~/.gitconfig no?
As to this extra variable, it can already be done with existing remote.*.partialCloneFilter, it seems, so I do not know why we want to add it.