1
0
mirror of https://github.com/git/git.git synced 2025-03-24 19:01:03 +00:00
Junio C Hamano 4e8115fff1 merge: allow "-" as a short-hand for "previous branch"
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: Junio C Hamano <gitster@pobox.com>
2011-04-07 15:57:57 -07:00
..
2011-04-01 17:55:55 -07:00
2011-03-09 23:52:57 -08:00
2011-04-01 17:55:55 -07:00
2011-03-09 23:52:57 -08:00
2011-04-01 17:55:55 -07:00
2011-04-01 17:57:37 -07:00
2010-10-21 17:16:10 -07:00
2011-04-01 17:55:55 -07:00
2011-04-01 17:55:55 -07:00
2011-04-01 17:55:55 -07:00
2011-03-22 10:16:54 -07:00
2011-03-22 11:43:27 -07:00
2011-04-03 10:14:53 -07:00
2011-03-22 10:16:54 -07:00
2011-04-01 17:57:37 -07:00
2011-04-01 17:55:55 -07:00
2010-11-24 15:55:19 -08:00
2011-03-22 10:16:54 -07:00
2011-03-22 10:16:54 -07:00
2011-03-22 10:16:54 -07:00
2011-03-23 14:55:46 -07:00
2011-03-09 23:52:56 -08:00
2011-04-01 17:55:55 -07:00
2011-03-22 10:16:54 -07:00
2011-03-22 10:16:54 -07:00
2011-03-22 10:16:54 -07:00
2011-04-01 17:55:55 -07:00
2011-03-22 11:43:27 -07:00
2011-03-22 10:16:54 -07:00
2011-04-01 17:55:55 -07:00
2011-04-01 17:55:55 -07:00
2011-03-09 23:52:56 -08:00
2011-03-22 10:16:54 -07:00
2011-03-09 23:52:58 -08:00
2011-04-01 17:55:55 -07:00
2011-03-22 10:16:54 -07:00
2010-11-15 10:04:43 -08:00
2011-03-22 10:16:54 -07:00