reset --hard/read-tree --reset -u: remove unmerged new paths
authorJunio C Hamano <gitster@pobox.com>
Wed, 15 Oct 2008 23:00:06 +0000 (16:00 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 18 Oct 2008 17:00:59 +0000 (10:00 -0700)
When aborting a failed merge that has brought in a new path using "git
reset --hard" or "git read-tree --reset -u", we used to first forget about
the new path (via read_cache_unmerged) and then matched the working tree
to what is recorded in the index, thus ending up leaving the new path in
the work tree.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found