author | Junio C Hamano <junkio@cox.net> | |
Wed, 10 Jan 2007 04:39:09 +0000 (20:39 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 10 Jan 2007 04:40:39 +0000 (20:40 -0800) | ||
commit | bfbbb8f8cf8250718ffd028efe179557d29ae72d | |
tree | 38c08b88ed30aafebc78d9c363047f33d73c642b | tree | snapshot |
parent | 75b364dfe28cf1700ac4f519ff7d3e42505e17a6 | commit | diff |
git-checkout: handle local changes sanely when detaching HEAD
When switching branches, we usually first try read-tree to make
sure that we do not lose the local changes and then updated the
HEAD using update-ref. However, we detached and updated HEAD
before these checks, which was quite bad in a repository with
local changes.
Signed-off-by: Junio C Hamano <junkio@cox.net>
When switching branches, we usually first try read-tree to make
sure that we do not lose the local changes and then updated the
HEAD using update-ref. However, we detached and updated HEAD
before these checks, which was quite bad in a repository with
local changes.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-checkout.sh | diff | blob | history |