Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jul 24, 2009
  1. dscho Junio C Hamano

    git repack: keep commits hidden by a graft

    dscho authored gitster committed
    When you have grafts that pretend that a given commit has different
    parents than the ones recorded in the commit object, it is dangerous
    to let 'git repack' remove those hidden parents, as you can easily
    remove the graft and end up with a broken repository.
    
    So let's play it safe and keep those parent objects and everything
    that is reachable by them, in addition to the grafted parents.
    
    As this behavior can only be triggered by git pack-objects, and as that
    command handles duplicate parents gracefully, we do not bother to cull
    duplicated parents that may result by using both true and grafted
    parents.
    
    Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Something went wrong with that request. Please try again.