]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'ls/packet-line-protocol-doc-fix' into maint
authorJunio C Hamano <gitster@pobox.com>
Fri, 9 Sep 2016 04:35:57 +0000 (21:35 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Sep 2016 04:35:57 +0000 (21:35 -0700)
Correct an age-old calco (is that a typo-like word for calc)
in the documentation.

* ls/packet-line-protocol-doc-fix:
  pack-protocol: fix maximum pkt-line size

1  2 
Documentation/technical/protocol-common.txt

index bf30167ae3590c97100beaea7070645a6da124a3,d2a6b268cd32189ffd91038a1a09493e863f176d..ecedb34bba54ecf8105336d5a98ca349ff35c63c
@@@ -62,14 -62,11 +62,14 @@@ A pkt-line MAY contain binary data, so 
  pkt-line parsing/formatting routines are 8-bit clean.
  
  A non-binary line SHOULD BE terminated by an LF, which if present
 -MUST be included in the total length.
 +MUST be included in the total length. Receivers MUST treat pkt-lines
 +with non-binary data the same whether or not they contain the trailing
 +LF (stripping the LF if present, and not complaining when it is
 +missing).
  
- The maximum length of a pkt-line's data component is 65520 bytes.
- Implementations MUST NOT send pkt-line whose length exceeds 65524
- (65520 bytes of payload + 4 bytes of length data).
+ The maximum length of a pkt-line's data component is 65516 bytes.
+ Implementations MUST NOT send pkt-line whose length exceeds 65520
+ (65516 bytes of payload + 4 bytes of length data).
  
  Implementations SHOULD NOT send an empty pkt-line ("0004").