From: Shawn O. Pearce Date: Mon, 19 Apr 2010 14:23:06 +0000 (-0700) Subject: Introduce close_pack_index to permit replacement X-Git-Tag: v1.7.2-rc0~118^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/fa5fc15d6ecfb9452c578bb4c80e98ccca12750c?hp=fa5fc15d6ecfb9452c578bb4c80e98ccca12750c 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 Signed-off-by: Junio C Hamano ---