aboutsummaryrefslogtreecommitdiff
path: root/convert.c
diff options
context:
space:
mode:
authorLars Schneider <larsxschneider@gmail.com>2016-10-16 16:20:34 -0700
committerJunio C Hamano <gitster@pobox.com>2016-10-17 11:36:50 -0700
commitbb643d8bf872c416b7445e728e2675ac6490fe1d (patch)
treebcfb2996f3848da2ef60bf24cc2e84361a82c991 /convert.c
parentedfb780cd4fe73474583016055542f5686d3d98d (diff)
downloadgit-bb643d8bf872c416b7445e728e2675ac6490fe1d.tar.gz
git-bb643d8bf872c416b7445e728e2675ac6490fe1d.tar.xz
pkt-line: add functions to read/write flush terminated packet streams
write_packetized_from_fd() and write_packetized_from_buf() write a stream of packets. All content packets use the maximal packet size except for the last one. After the last content packet a `flush` control packet is written. read_packetized_to_strbuf() reads arbitrary sized packets until it detects a `flush` packet. Signed-off-by: Lars Schneider <larsxschneider@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'convert.c')
0 files changed, 0 insertions, 0 deletions