summaryrefslogtreecommitdiff
path: root/Documentation/lint-gitlink.perl
diff options
context:
space:
mode:
authorLibravatar Michael Haggerty <mhagger@alum.mit.edu>2017-01-06 17:22:34 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-01-07 19:30:09 -0800
commite404f459fdc0d42e9ea83084cb1acdd241c14de3 (patch)
tree56dcf5327ff92402a064b5a242b890ca6fa4d987 /Documentation/lint-gitlink.perl
parentlog_ref_setup(): improve robustness against races (diff)
downloadtgif-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 'Documentation/lint-gitlink.perl')
0 files changed, 0 insertions, 0 deletions