From: Lars Schneider Date: Sun, 16 Oct 2016 23:20:33 +0000 (-0700) Subject: pkt-line: add packet_write_gently() X-Git-Tag: v2.11.0-rc0~10^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/edfb780cd4fe73474583016055542f5686d3d98d?hp=edfb780cd4fe73474583016055542f5686d3d98d pkt-line: add packet_write_gently() packet_write_fmt_gently() uses format_packet() which lets the caller only send string data via "%s". That means it cannot be used for arbitrary data that may contain NULs. Add packet_write_gently() which writes arbitrary data and does not die in case of an error. The function is used by other pkt-line functions in a subsequent patch. Signed-off-by: Lars Schneider Signed-off-by: Junio C Hamano ---