diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2017-01-06 17:22:34 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-01-07 19:30:09 -0800 |
commit | e404f459fdc0d42e9ea83084cb1acdd241c14de3 (patch) | |
tree | 56dcf5327ff92402a064b5a242b890ca6fa4d987 /t/t3103-ls-tree-misc.sh | |
parent | log_ref_setup(): improve robustness against races (diff) | |
download | tgif-e404f459fdc0d42e9ea83084cb1acdd241c14de3.tar.xz |
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>
Diffstat (limited to 't/t3103-ls-tree-misc.sh')
0 files changed, 0 insertions, 0 deletions