]> git.ipfire.org Git - thirdparty/git.git/commit - pkt-line.c
pkt-line: add packet_buf_write_len function
authorBrandon Williams <bmwill@google.com>
Thu, 15 Mar 2018 17:31:35 +0000 (10:31 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Mar 2018 19:01:09 +0000 (12:01 -0700)
commitf1f4d8acf400912a9e2a7b97080afced56719c29
treee4db72587bbab47709c0c4c49c80e5bd7e05186c
parentedc9caf7e2ecd3d5327e78a3e539eda61a0e4d81
pkt-line: add packet_buf_write_len function

Add the 'packet_buf_write_len()' function which allows for writing an
arbitrary length buffer into a 'struct strbuf' and formatting it in
packet-line format.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pkt-line.c
pkt-line.h