Skip to content
  • Junio C Hamano's avatar
    more lightweight revalidation while reusing deflated stream in packing · 72518e9c
    Junio C Hamano authored
    
    
    When copying from an existing pack and when copying from a loose
    object with new style header, the code makes sure that the piece
    we are going to copy out inflates well and inflate() consumes
    the data in full while doing so.
    
    The check to see if the xdelta really apply is quite expensive
    as you described, because you would need to have the image of
    the base object which can be represented as a delta against
    something else.
    
    Signed-off-by: default avatarJunio C Hamano <junkio@cox.net>
    72518e9c