diff options
author | Brandon Williams <bmwill@google.com> | 2018-03-14 11:31:40 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-14 14:15:06 -0700 |
commit | a4cfd41c7be81c10b925532979e81e4d07f6b376 (patch) | |
tree | cda6b41e43b63dd5956caab45063dba6dd642826 /t/t7610-mergetool.sh | |
parent | pkt-line: allow peeking a packet line without consuming it (diff) | |
download | tgif-a4cfd41c7be81c10b925532979e81e4d07f6b376.tar.xz |
pkt-line: add delim packet support
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.
Documentation for how this packet will be used in protocol v2 will
included in a future patch.
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7610-mergetool.sh')
0 files changed, 0 insertions, 0 deletions