update
This commit is contained in:
parent
a5a7d8433d
commit
483e82ae0e
1 changed files with 3 additions and 7 deletions
|
@ -38,13 +38,9 @@ import Utility.FileSystemEncoding
|
||||||
newtype PktLine = PktLine B.ByteString
|
newtype PktLine = PktLine B.ByteString
|
||||||
deriving (Show)
|
deriving (Show)
|
||||||
|
|
||||||
{- Maximum possible length of the string encoded in PktLine;
|
{- Maximum allowed length of the string encoded in PktLine
|
||||||
- the length header takes up 4 bytes.
|
- is slightly shorter than the absolute maximum possible length.
|
||||||
-
|
- Git does not accept anything longer than this. -}
|
||||||
- While the header can express lengths up to 65535,
|
|
||||||
- git actually does not support packets larger than 65520
|
|
||||||
- (including the header). See "LARGE_PACKET_MAX" in the git source code.
|
|
||||||
-}
|
|
||||||
maxPktLineLength :: Int
|
maxPktLineLength :: Int
|
||||||
maxPktLineLength = 65520 - pktLineHeaderLength
|
maxPktLineLength = 65520 - pktLineHeaderLength
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue