Skip to content
  • Johannes Schindelin's avatar
    Deprecate support for .git/info/grafts · f9f99b3f
    Johannes Schindelin authored and Junio C Hamano's avatar Junio C Hamano committed
    The grafts feature was a convenient way to "stitch together" ancient
    history to the fresh start of linux.git.
    
    Its implementation is, however, not up to Git's standards, as there are
    too many ways where it can lead to surprising and unwelcome behavior.
    
    For example, when pushing from a repository with active grafts, it is
    possible to miss commits that have been "grafted out", resulting in a
    broken state on the other side.
    
    Also, the grafts feature is limited to "rewriting" commits' list of
    parents, it cannot replace anything else.
    
    The much younger feature implemented as `git replace` set out to remedy
    those limitations and dangerous bugs.
    
    Seeing as `git replace` is pretty mature by now (since 4228e8bc
    
    
    (replace: add --graft option, 2014-07-19) it can perform the graft
    file's duties), it is time to deprecate support for the graft file, and
    to retire it eventually.
    
    Signed-off-by: default avatarJohannes Schindelin <johannes.schindelin@gmx.de>
    Reviewed-by: default avatarStefan Beller <sbeller@google.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    f9f99b3f