]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/am.c
use write_file_buf where applicable
authorJeff King <peff@peff.net>
Fri, 8 Jul 2016 09:12:55 +0000 (05:12 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Jul 2016 16:47:29 +0000 (09:47 -0700)
commite78d5d49935373dabcc40c5e32aefe4956a70b97
treef2d9307ea64ca0b233b42e61031244076db39adc
parente04d08a4b3373972717c805ae8e788219b873b2a
use write_file_buf where applicable

There are several places where we open a file, write some
content from a strbuf, and close it. These can be simplified
with write_file_buf(). As a bonus, many of these did not
catch write problems at close() time.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/am.c
builtin/merge.c