bisect--helper: introduce new `write_in_file()` function
authorMiriam Rubio <redacted>
Fri, 28 Aug 2020 12:46:07 +0000 (14:46 +0200)
committerJunio C Hamano <redacted>
Fri, 28 Aug 2020 23:21:16 +0000 (16:21 -0700)
commit7b4de74b5de5c1ceb035d33168d482ad213b4137
tree6d27da05bdb3e9590145daa716fab402c5dad95f
parent30276765c114bbd57ef0d8e6cf5489501599421a
bisect--helper: introduce new `write_in_file()` function

Let's refactor code adding a new `write_in_file()` function
that opens a file for writing a message and closes it and a
wrapper for writing mode.

This helper will be used in later steps and makes the code
simpler and easier to understand.

Mentored-by: Christian Couder <redacted>
Mentored-by: Johannes Schindelin <redacted>
Signed-off-by: Miriam Rubio <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/bisect--helper.c
git clone https://git.99rst.org/PROJECT