cherry-pick: allow "-" as abbreviation of '@{-1}'
commit182d7dc46b23b4a20985c93ea3a6ba3e6f267ff6
authorHiroshige Umino <hiroshige88@gmail.com>
Thu, 5 Sep 2013 14:57:23 +0000 (5 23:57 +0900)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Sep 2013 18:17:11 +0000 (9 11:17 -0700)
treecc2b74ef4b6f2a29d9eeed5e3dd6c2967c1ef6b9
parente5be297279e8ee8c503eb59da21ab17edc40e748
cherry-pick: allow "-" as abbreviation of '@{-1}'

"-" abbreviation is handy for "cherry-pick" like "checkout" and "merge".

It's also good for uniformity that a "-" stands as
the name of the previous branch where a branch name is
accepted and it could not mean any other things like stdin.

Signed-off-by: Hiroshige Umino <hiroshige88@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/revert.c
t/t3501-revert-cherry-pick.sh