Re: [PATCH v2 5/9] upload-pack, receive-pack: introduce protocol version 1

2017-09-27 Thread Brandon Williams
On 09/27, Junio C Hamano wrote: > Brandon Williams writes: > > > @@ -1963,6 +1964,19 @@ int cmd_receive_pack(int argc, const char **argv, > > const char *prefix) > > else if (0 <= receive_unpack_limit) > > unpack_limit = receive_unpack_limit; > > > > + switch (determine_proto

Re: [PATCH v2 5/9] upload-pack, receive-pack: introduce protocol version 1

2017-09-26 Thread Junio C Hamano
Brandon Williams writes: > @@ -1963,6 +1964,19 @@ int cmd_receive_pack(int argc, const char **argv, > const char *prefix) > else if (0 <= receive_unpack_limit) > unpack_limit = receive_unpack_limit; > > + switch (determine_protocol_version_server()) { > + case proto

[PATCH v2 5/9] upload-pack, receive-pack: introduce protocol version 1

2017-09-26 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