author | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 19 Apr 2010 14:23:06 +0000 (07:23 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 20 Apr 2010 00:56:08 +0000 (17:56 -0700) | ||
commit | fa5fc15d6ecfb9452c578bb4c80e98ccca12750c | |
tree | 980077ada6085c5ea0be4f02d56b504de4b8c723 | tree | snapshot |
parent | 162eb5f838630f75f78f26d28b46b02781724b7d | commit | diff |
Introduce close_pack_index to permit replacement
By closing the pack index, a caller can later overwrite the index
with an updated index file, possibly after converting from v1 to
the v2 format. Because p->index_data is NULL after close, on the
next access the index will be opened again and the other members
will be updated with new data.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
By closing the pack index, a caller can later overwrite the index
with an updated index file, possibly after converting from v1 to
the v2 format. Because p->index_data is NULL after close, on the
next access the index will be opened again and the other members
will be updated with new data.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h | diff | blob | history | |
sha1_file.c | diff | blob | history |