Merge branch 'rs/sequencer-rewrite-file-cleanup'
commit6fa1f6f16f29516e57dc3c81f0910e6c34786c17
authorJunio C Hamano <gitster@pobox.com>
Wed, 15 Nov 2017 03:14:28 +0000 (15 12:14 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 15 Nov 2017 03:14:28 +0000 (15 12:14 +0900)
tree114f9d8a718f7cc1b658340b55165e96775348ae
parenta6ee796aa85ef96cab1ba866e193eedfda2fb5b6
parent9360ec0002369f3194cc5ac75ec50dab4979c988
Merge branch 'rs/sequencer-rewrite-file-cleanup'

Code cleanup.

* rs/sequencer-rewrite-file-cleanup:
  sequencer.c: check return value of close() in rewrite_file()
  sequencer: use O_TRUNC to truncate files
  sequencer: factor out rewrite_file()
sequencer.c