Re: [RFC 0/7] transitioning to protocol v2
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 25, 2017, 17:48 UTC
- Message-ID
- <xmqqpobjsflp.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20170825172901.kvquxafudhelxqq3@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 7 quoted lines
> But what if we instead think of it not as "protocol v2" but as "can I > give the server some hints that it may end up ignoring", then we end up > with something more like: > > C: please run upload-pack (btw, I'm only interested in refs/heads/foo) > S: advertisement + caps (hopefully limited to foo, but client is prepared to receive all) > ... etc, as before ...
Nice. The caps that come back can tell us between the cases where they only had refs/heads/foo and nothing else, or if they limited their output to it among many others we told them to ignore, so there is no ambiguity.
> Or alternatively, I guess make this optional to start with, and > let early adopters turn it on and complain to their server vendors > for a while before flipping the default to on.
That sounds like a safe transition plan.