diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2007-11-13 21:05:03 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-14 15:18:39 -0800 |
commit | 4723ee992cba052dc735b7d2b6f43aad26d9150a (patch) | |
tree | 054caef1affda565abda6af31e938fab32971a4e /cache.h | |
parent | 2488df84a28b5eaae5495a59e390b51874d60a03 (diff) | |
download | git-4723ee992cba052dc735b7d2b6f43aad26d9150a.tar.gz |
Close files opened by lock_file() before unlinking.
This is needed on Windows since open files cannot be unlinked.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -290,6 +290,7 @@ extern int refresh_index(struct index_state *, unsigned int flags, const char ** struct lock_file { struct lock_file *next; + int fd; pid_t owner; char on_list; char filename[PATH_MAX]; |