Re: [WIP 03/15] pkt-line: add delim packet support
- From
- Brandon Williams <bmwill@google.com>
- Date
- Dec 8, 2017, 20:08 UTC
- Message-ID
- <20171208200850.GA140529@google.com>
- In-Reply-To
- <CAGZ79kYw3y3grehEbFeoA2r7pEra079M7zVpcVwxcoK5BPN1Dw@mail.gmail.com>
On 12/07, Stefan Beller wrote:
Show 16 quoted lines
> On Mon, Dec 4, 2017 at 3:58 PM, Brandon Williams <bmwill@google.com> wrote: > > One of the design goals of protocol-v2 is to improve the semantics of > > flush packets. Currently in protocol-v1, flush packets are used both to > > indicate a break in a list of packet lines as well as an indication that > > one side has finished speaking. This makes it particularly difficult > > to implement proxies as a proxy would need to completely understand git > > protocol instead of simply looking for a flush packet. > > > > To do this, introduce the special deliminator packet '0001'. A delim > > packet can then be used as a deliminator between lists of packet lines > > while flush packets can be reserved to indicate the end of a response. > > > > Signed-off-by: Brandon Williams <bmwill@google.com> > > I presume the update for Documentation/technical/* comes at a later patch in the > series, clarifying the exact semantic difference between the packet types?
Yeah, currently there isn't a use for the delim packet but there will be one when v2 is introduced.
-- Brandon Williams