diff options
| author | Lars Schneider <larsxschneider@gmail.com> | 2016-10-16 16:20:33 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2016-10-17 11:36:50 -0700 |
| commit | edfb780cd4fe73474583016055542f5686d3d98d (patch) | |
| tree | f116ce8482464c3e5b375696a47d1bbf89909f3b /builtin/commit.c | |
| parent | pkt-line: add packet_flush_gently() (diff) | |
| download | git-edfb780cd4fe73474583016055542f5686d3d98d.tar.gz git-edfb780cd4fe73474583016055542f5686d3d98d.zip | |
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 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions
