diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-09-14 18:46:59 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-09-14 18:46:59 (GMT) |
commit | 4be6af6459bfe7abc0e964a9defcceb45444181e (patch) | |
tree | 73e83574b207cbf1c2b0d96ede92ac412982fb84 /Documentation/technical/protocol-common.txt | |
parent | 971f9ea54313d189e6a79395b5a6e335101bd85a (diff) | |
parent | 1c9b659d9837fa2bd6ab21edaae94d19c20ac216 (diff) | |
download | git-4be6af6459bfe7abc0e964a9defcceb45444181e.zip git-4be6af6459bfe7abc0e964a9defcceb45444181e.tar.gz git-4be6af6459bfe7abc0e964a9defcceb45444181e.tar.bz2 |
Merge branch 'jk/pack-protocol-doc'
Streamline documentation of the pkt-line protocol.
* jk/pack-protocol-doc:
pack-protocol: clarify LF-handling in PKT-LINE()
Diffstat (limited to 'Documentation/technical/protocol-common.txt')
-rw-r--r-- | Documentation/technical/protocol-common.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Documentation/technical/protocol-common.txt b/Documentation/technical/protocol-common.txt index 889985f..bf30167 100644 --- a/Documentation/technical/protocol-common.txt +++ b/Documentation/technical/protocol-common.txt @@ -62,7 +62,10 @@ A pkt-line MAY contain binary data, so implementors MUST ensure 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 |