Skip to content
  • Felipe Contreras's avatar
    Add new @ shortcut for HEAD · 9ba89f48
    Felipe Contreras authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    Typing 'HEAD' is tedious, especially when we can use '@' instead.
    
    The reason for choosing '@' is that it follows naturally from the
    ref@op syntax (e.g. HEAD@{u}), except we have no ref, and no
    operation, and when we don't have those, it makes sens to assume
    'HEAD'.
    
    So now we can use 'git show @~1', and all that goody goodness.
    
    Until now '@' was a valid name, but it conflicts with this idea, so
    let's make it invalid. Probably very few people, if any, used this name.
    
    Signed-off-by: Felipe Contreras's avatarFelipe Contreras <felipe.contreras@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    9ba89f48