From: Duy Nguyen Date: Sat, 07 Mar 2015 00:00:14 GMT Subject: Re: [PATCH] protocol upload-pack-v2 Message-ID: In-Reply-To: <1425685087-21633-1-git-send-email-sbeller@google.com> On Sat, Mar 7, 2015 at 6:38 AM, Stefan Beller wrote: > +Reference Discovery (v2) > +------------------------ > + > +In version 2, reference discovery is initiated by the client with > +"want-refs" line. The client may skip reference discovery phase > +entirely by not sending "want-refs" (e.g. the client has another way > +to retrieve ref list). > + > +---- > + want-refs = PKT-LINE("want-refs" SP mode *argument) > + mode = "all" > + argument = SP arg > + arg = 1*(LC_ALPHA / DIGIT / "-" / "_" / "=") > +---- On the same line with capabilities, we would not want to run into a situation where we have too many arguments to send and exceed pkt-line limit. So perhaps do one argument per pkt-line too, ending with a pkt-flush. -- Duy