Skip to content
  • Junio C Hamano's avatar
    Add git-symbolic-ref · 8098a178
    Junio C Hamano authored
    
    
    This adds the counterpart of git-update-ref that lets you read
    and create "symbolic refs".  By default it uses a symbolic link
    to represent ".git/HEAD -> refs/heads/master", but it can be compiled
    to use the textfile symbolic ref.
    
    The places that did 'readlink .git/HEAD' and 'ln -s refs/heads/blah
    .git/HEAD' have been converted to use new git-symbolic-ref command, so
    that they can deal with either implementation.
    
    Signed-off-by: default avatarJunio C Hamano <junio@twinsun.com>
    8098a178