]> git.ipfire.org Git - thirdparty/git.git/commit - pkt-line.h
pkt-line: add packet_flush_gently()
authorLars Schneider <larsxschneider@gmail.com>
Sun, 16 Oct 2016 23:20:32 +0000 (16:20 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Oct 2016 18:36:50 +0000 (11:36 -0700)
commit038ce90f2ff91587f2d61993f5c4c23d6fdca144
tree649900624f101604aa7b3aa50fab62ee3112ca7a
parent70428d1a5209f8c9996e9a4e0cc2f7aa0f83f3e8
pkt-line: add packet_flush_gently()

packet_flush() would die in case of a write error even though for some
callers an error would be acceptable. Add packet_flush_gently() which
writes a pkt-line flush packet like packet_flush() but does not die in
case of an error. The function is used in a subsequent patch.

Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pkt-line.c
pkt-line.h