checkout: implement "-" abbreviation, add docs and tests
commit696acf45f9638b014c7132508de26d1a571c8a33
authorThomas Rast <trast@student.ethz.ch>
Sat, 17 Jan 2009 16:09:56 +0000 (17 17:09 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 18 Jan 2009 02:37:21 +0000 (17 18:37 -0800)
treeceeb225371a2f12017cdfe4dce350b626d34a6b0
parentd18ba22154574390dbff2c060f44b9715477e95a
checkout: implement "-" abbreviation, add docs and tests

Have '-' mean the same as '@{-1}', i.e., the last branch we were on.

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-checkout.txt
builtin-checkout.c
t/t2012-checkout-last.sh [new file with mode: 0755]