From: Ben Peart Date: Tue, 10 Jul 2018 21:08:22 +0000 (+0000) Subject: convert log_ref_write_fd() to use strbuf X-Git-Tag: v2.19.0-rc0~127^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/80a6c2073b4d90be3e1be21f86afe7a47d1ac7bc?ds=inline;hp=80a6c2073b4d90be3e1be21f86afe7a47d1ac7bc convert log_ref_write_fd() to use strbuf Since we don't care about how many bytes were written, simplify the return value logic. log_ref_write_fd() was written long before strbuf was fleshed out. Remove the old manual buffer management code and replace it with strbuf(). Also update copy_reflog_msg() which is called only by log_ref_write_fd() to use strbuf as it keeps things consistent. Signed-off-by: Ben Peart Signed-off-by: Junio C Hamano ---