Re: [PATCH v3 0/8] Hiding refs
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Mar 15, 2014, 01:23 UTC
- Message-ID
- <CACsJy8A1=U2=TGoKyo5mo1fLW+hBR1psn1J6S0=391fei2JULw@mail.gmail.com>
- In-Reply-To
- <20140311014945.GB12033@sigill.intra.peff.net>
On Tue, Mar 11, 2014 at 8:49 AM, Jeff King <peff@peff.net> wrote:
Show 19 quoted lines
> Right, I recall the general feeling being that such a system would work, > and the transition would be managed by a config variable like > "remote.*.useUploadPack2". Probably with settings like: > > true: > always try, but allow fall back to upload-pack > > false: > never try, always use upload-pack > > auto: > try, but if we fail, set remote.*.uploadPackTimestamp, and do not > try again for N days > > The default would start at false, and people who know their server is > very up-to-date can turn it on. And then when many server > implementations support it, flip the default to auto. And either leave > it there forever, or eventually just set it to "true" and drop "auto" > entirely as a code cleanup.
I would add that upload-pack also advertises about the availability of upload-pack2 and the client may set the remote.*.useUploadPack2 to either yes or auto so next time upload-pack2 will be used.
-- Duy