pkt-line: add packet_write function
authorBrandon Williams <redacted>
Mon, 16 Oct 2017 17:55:23 +0000 (10:55 -0700)
committerJunio C Hamano <redacted>
Tue, 17 Oct 2017 01:51:29 +0000 (10:51 +0900)
commit5d2124b34a11967b56bfeb57556be5e4583172c8
tree5f4a2c5923b639c8b499608ef93cc038c3889043
parent0cd83283dfd2a22b3f95cbee6eaef196e6bde77d
pkt-line: add packet_write function

Add a function which can be used to write the contents of an arbitrary
buffer.  This makes it easy to build up data in a buffer before writing
the packet instead of formatting the entire contents of the packet using
'packet_write_fmt()'.

Signed-off-by: Brandon Williams <redacted>
Signed-off-by: Junio C Hamano <redacted>
pkt-line.c
pkt-line.h
git clone https://git.99rst.org/PROJECT