• F
    Add new @ shortcut for HEAD · cdfd9483
    Felipe Contreras 提交于
    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: NFelipe Contreras <felipe.contreras@gmail.com>
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    cdfd9483
t1508-at-combinations.sh 1.8 KB