summaryrefslogtreecommitdiff
path: root/archive.c
diff options
context:
space:
mode:
authorLars Schneider <larsxschneider@gmail.com>2016-10-16 16:20:33 -0700
committerJunio C Hamano <gitster@pobox.com>2016-10-17 11:36:50 -0700
commitedfb780cd4fe73474583016055542f5686d3d98d (patch)
treef116ce8482464c3e5b375696a47d1bbf89909f3b /archive.c
parent038ce90f2ff91587f2d61993f5c4c23d6fdca144 (diff)
downloadgit-edfb780cd4fe73474583016055542f5686d3d98d.tar.gz
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 <larsxschneider@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'archive.c')
0 files changed, 0 insertions, 0 deletions