Re: [PATCH v3 05/10] upload-pack, receive-pack: introduce protocol version 1

2017-10-13 Thread Brandon Williams
On 10/10, Jonathan Tan wrote: > On Tue, 3 Oct 2017 13:15:02 -0700 > Brandon Williams wrote: > > > + switch (determine_protocol_version_server()) { > > + case protocol_v1: > > + if (advertise_refs || !stateless_rpc) > > + packet_write_fmt(1, "version 1\n"); > > +

Re: [PATCH v3 05/10] upload-pack, receive-pack: introduce protocol version 1

2017-10-10 Thread Jonathan Tan
On Tue, 3 Oct 2017 13:15:02 -0700 Brandon Williams wrote: > + switch (determine_protocol_version_server()) { > + case protocol_v1: > + if (advertise_refs || !stateless_rpc) > + packet_write_fmt(1, "version 1\n"); > + /* > + * v1 is

[PATCH v3 05/10] upload-pack, receive-pack: introduce protocol version 1

2017-10-03 Thread Brandon Williams
Teach upload-pack and receive-pack to understand and respond using protocol version 1, if requested. Protocol version 1 is simply the original and current protocol (what I'm calling version 0) with the addition of a single packet line, which precedes the ref advertisement, indicating the protocol