object-file: inline write_buffer()
commitd422d06167af35bbe81026ee75c14eaa6b93127c
authorRené Scharfe <l.s.r@web.de>
Tue, 13 Dec 2022 19:35:07 +0000 (13 20:35 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Dec 2022 01:29:19 +0000 (14 10:29 +0900)
treec1755c895087c77ad70a8ae1094ad23a04596e12
parentc48035d29b4e524aed3a32f0403676f0d9128863
object-file: inline write_buffer()

write_buffer() reports the OS error if it is unable to write.  Its only
caller dies in that case, giving some more context in its last message.

Inline this function and show only a single error message that includes
both the context (writing a loose object file) and the OS error.  This
shortens the code and simplifies the output.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object-file.c