summaryrefslogtreecommitdiff
path: root/merge.c
diff options
context:
space:
mode:
authorLibravatar Lars Schneider <larsxschneider@gmail.com>2016-10-16 16:20:33 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-10-17 11:36:50 -0700
commitedfb780cd4fe73474583016055542f5686d3d98d (patch)
treef116ce8482464c3e5b375696a47d1bbf89909f3b /merge.c
parentpkt-line: add packet_flush_gently() (diff)
downloadtgif-edfb780cd4fe73474583016055542f5686d3d98d.tar.xz
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 'merge.c')
0 files changed, 0 insertions, 0 deletions