1
0
mirror of https://github.com/git/git.git synced 2024-10-20 09:59:05 +02:00
git/refs
Michael Haggerty e404f459fd log_ref_setup(): pass the open file descriptor back to the caller
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-by: Michael Haggerty <mhagger@alum.mit.edu>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2017-01-07 19:30:09 -08:00
..
files-backend.c log_ref_setup(): pass the open file descriptor back to the caller 2017-01-07 19:30:09 -08:00
iterator.c do_for_each_ref(): reimplement using reference iteration 2016-06-20 11:38:20 -07:00
refs-internal.h refname_is_safe(): correct docstring 2017-01-07 19:30:08 -08:00