Re: [PATCH 09/20] log_ref_setup(): pass the open file descriptor back to the caller

2016-02-18 Thread Junio C Hamano
Michael Haggerty writes: > This function will most often be called by log_ref_write_1(), which > wants to append to the reflog file. In that case, it is silly to close > the file only for the caller to reopen it immediately. So, in the case > that the file was opened, pass the open file descripto

[PATCH 09/20] log_ref_setup(): pass the open file descriptor back to the caller

2016-02-16 Thread Michael Haggerty
This function will most often be called by log_ref_write_1(), which wants to append to the reflog file. In that case, it is silly to close the file only for the caller to reopen it immediately. So, in the case that the file was opened, pass the open file descriptor back to the caller. Signed-off-b