Skip to content
  • Jeff King's avatar
    reachable: mark index blobs as SEEN · 37254279
    Jeff King authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    When we mark all reachable objects for pruning, that
    includes blobs mentioned by the index. However, we do not
    mark these with the SEEN flag, as we do for objects that we
    find by traversing (we also do not add them to the pending
    list, but that is because there is nothing further to
    traverse with them).
    
    This doesn't cause any problems with prune, because it
    checks only that the object exists in the global object
    hash, and not its flags. However, let's mark these objects
    to be consistent and avoid any later surprises.
    
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    37254279