summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2017-01-06 17:22:34 +0100
committerJunio C Hamano <gitster@pobox.com>2017-01-07 19:30:09 -0800
commite404f459fdc0d42e9ea83084cb1acdd241c14de3 (patch)
tree56dcf5327ff92402a064b5a242b890ca6fa4d987 /commit.c
parent1fb0c809859252f037286d32f56432444d65bd38 (diff)
downloadgit-e404f459fdc0d42e9ea83084cb1acdd241c14de3.tar.gz
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 'commit.c')
0 files changed, 0 insertions, 0 deletions