]> git.ipfire.org Git - thirdparty/git.git/commit
bisect--helper: introduce new `write_in_file()` function
authorMiriam Rubio <mirucam@gmail.com>
Fri, 28 Aug 2020 12:46:07 +0000 (14:46 +0200)
committerJunio C Hamano <gitster@pobox.com>
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 <chriscool@tuxfamily.org>
Mentored-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Miriam Rubio <mirucam@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/bisect--helper.c