checkout: no auto-detach if the ref is already checked out
commit5e9149417b92c51e58550fe58f10f05b6dd7d016
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Tue, 29 Jul 2014 13:50:27 +0000 (29 20:50 +0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 Jul 2014 20:42:13 +0000 (29 13:42 -0700)
tree68dd779944981425f1a5950ec311afb497ece8a9
parent38d2ab633180e183653d781e5787e2842000f09f
checkout: no auto-detach if the ref is already checked out

Give the user a choice in this case: detach, make a new branch,
release current branch in the other checkout or simply 'cd' there and
continue to work.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
advice.c
advice.h
builtin/checkout.c
t/t2025-checkout-to.sh