convert log_ref_write_fd() to use strbuf
authorBen Peart <Ben.Peart@microsoft.com>
Tue, 10 Jul 2018 21:08:22 +0000 (21:08 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 10 Jul 2018 21:22:44 +0000 (14:22 -0700)
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 <Ben.Peart@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found