summaryrefslogtreecommitdiff
path: root/xdiff/xtypes.h
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <johannes.schindelin@gmx.de>2015-10-06 15:18:34 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-10-07 10:47:10 -0700
commit38849a8116e690071c02eba0a8ef60a031a58080 (patch)
tree698f68b05e4eab803a511ddb47182c2a2d8361cd /xdiff/xtypes.h
parentsha1_file: consolidate code to close a pack's file descriptor (diff)
downloadtgif-38849a8116e690071c02eba0a8ef60a031a58080.tar.xz
sha1_file.c: add a function to release all packs
On Windows, files that are in use cannot be removed or renamed. That means that we have to release pack files when we are about to, say, repack them. Let's introduce a convenient function to close all the pack files and their idx files. While at it, we consolidate the close windows/close fd/close index stanza in `free_pack_by_name()` into the `close_pack()` function that is used by the new `close_all_packs()` function to avoid repeated code. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'xdiff/xtypes.h')
0 files changed, 0 insertions, 0 deletions