• J
    merge: allow "-" as a short-hand for "previous branch" · 4e8115ff
    Junio C Hamano 提交于
    Just like "git checkout -" is a short-hand for "git checkout @{-1}" to
    conveniently switch back to the previous branch, "git merge -" is a
    short-hand for "git merge @{-1}" to conveniently merge the previous branch.
    
    It will allow me to say:
    
        $ git checkout -b au/topic
        $ git am -s ./+au-topic.mbox
        $ git checkout pu
        $ git merge -
    
    which is an extremely typical and repetitive operation during my git day.
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    4e8115ff
merge.c 37.2 KB