diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-10-15 15:43:49 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-10-15 15:43:49 -0700 |
commit | db5adf24bf6e0380d4b4ce97f88b4f874773f424 (patch) | |
tree | 463ceaa1553402eaab35e2ed4602314a12fd5fcd /cache.h | |
parent | b80dd559c99ad8afa2d9ec513b18048257547593 (diff) | |
parent | 786b150c8d0960cb7c36fb1cbbf70dbd76b586de (diff) | |
download | git-db5adf24bf6e0380d4b4ce97f88b4f874773f424.tar.gz |
Merge branch 'js/clone-dissociate'
"git clone --dissociate" runs a big "git repack" process at the
end, and it helps to close file descriptors that are open on the
packs and their idx files before doing so on filesystems that
cannot remove a file that is still open.
* js/clone-dissociate:
clone --dissociate: avoid locking pack files
sha1_file.c: add a function to release all packs
sha1_file: consolidate code to close a pack's file descriptor
t5700: demonstrate a Windows file locking issue with `git clone --dissociate`
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1276,6 +1276,7 @@ extern void close_pack_index(struct packed_git *); extern unsigned char *use_pack(struct packed_git *, struct pack_window **, off_t, unsigned long *); extern void close_pack_windows(struct packed_git *); +extern void close_all_packs(void); extern void unuse_pack(struct pack_window **); extern void free_pack_by_name(const char *); extern void clear_delta_base_cache(void); |