From: Nguyễn Thái Ngọc Duy Date: Sun, 30 Nov 2014 08:24:49 +0000 (+0700) Subject: checkout: reject if the branch is already checked out elsewhere X-Git-Tag: v2.5.0-rc0~143^2~17 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/5883034c61c60e04db16520a759ec67a34ffaea3?ds=sidebyside;hp=5883034c61c60e04db16520a759ec67a34ffaea3 checkout: reject if the branch is already checked out elsewhere One branch obviously can't be checked out at two places (but detached heads are ok). Give the user a choice in this case: --detach, -b new-branch, switch branch in the other checkout first or simply 'cd' and continue to work there. Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano ---