pub fn encode_text_line(text: &str) -> Result<Vec<u8>, ProtocolError>Expand description
Encode a non-binary line as a data pkt-line with a trailing LF.
gitprotocol-common: a non-binary line SHOULD be terminated by an LF, and that LF
counts toward pkt-len. An empty text becomes a single LF (0005\n), not 0004.
A text that already ends in LF is not given a second one.