• Johan Herland's avatar
    git symbolic-ref --delete $symref · 9ab55daa
    Johan Herland authored
    Teach symbolic-ref to delete symrefs by adding the -d/--delete option to
    git-symbolic-ref. Both proper and dangling symrefs are deleted by this
    option, but other refs - or anything else that is not a symref - is not.
    
    The symref deletion is performed by first verifying that we are given a
    proper symref, and then invoking delete_ref() on it with the REF_NODEREF
    flag.
    Signed-off-by: default avatarJohan Herland <johan@herland.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    9ab55daa
git-symbolic-ref.txt 1.93 KB