Skip to content
  • Christian Couder's avatar
    Add new "git replace" command · 54b0c1e0
    Christian Couder authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    This command can only be used now to list replace refs in
    "refs/replace/" and to delete them.
    
    The option to list replace refs is "-l".
    The option to delete replace refs is "-d".
    
    The behavior should be consistent with how "git tag" and "git branch"
    are working.
    
    The code has been copied from "builtin-tag.c" by Kristian Høgsberg
    <krh@redhat.com> and Carlos Rica <jasampler@gmail.com> that was itself
    based on git-tag.sh and mktag.c by Linus Torvalds.
    
    Signed-off-by: default avatarChristian Couder <chriscool@tuxfamily.org>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    54b0c1e0