Revision fa3a0c94dc88567b513e58835e5915f87da40af9 authored by Shawn O. Pearce on 11 February 2009, 18:15:30 UTC, committed by Junio C Hamano on 11 February 2009, 18:25:24 UTC
There is some risk that re-opening a regenerated pack file with
different offsets could leave stale entries within the delta base
cache that could be matched up against other objects using the same
"struct packed_git*" and pack offset.

Throwing away the entire delta base cache in this case is safer,
as we don't have to worry about a recycled "struct packed_git*"
matching to the wrong base object, resulting in delta apply
errors while unpacking an object.

Suggested-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 3d20c63
History
File Mode Size
sha1.c -rw-r--r-- 1.7 KB
sha1.h -rw-r--r-- 402 bytes
sha1_arm.S -rw-r--r-- 3.5 KB

back to top