author | Junio C Hamano <gitster@pobox.com> | |
Fri, 25 Dec 2009 19:57:11 +0000 (11:57 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 26 Dec 2009 01:10:10 +0000 (17:10 -0800) | ||
commit | 4421a8235783d0664faa9a1d45be114fd7ad8206 | |
tree | 90505e56f05e1125140a21516a19667176da6e73 | tree | snapshot |
parent | 4a39f79d3482cd844443b4ef9a8ef9b3d72faa5b | commit | diff |
resolve-undo: "checkout -m path" uses resolve-undo information
Once you resolved conflicts by "git add path", you cannot recreate the
conflicted state with "git checkout -m path", because you lost information
from higher stages in the index when you resolved them.
Since we record the necessary information in the resolve-undo index
extension these days, we can reproduce the unmerged state in the index and
check it out.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Once you resolved conflicts by "git add path", you cannot recreate the
conflicted state with "git checkout -m path", because you lost information
from higher stages in the index when you resolved them.
Since we record the necessary information in the resolve-undo index
extension these days, we can reproduce the unmerged state in the index and
check it out.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-checkout.c | diff | blob | history | |
cache.h | diff | blob | history | |
resolve-undo.c | diff | blob | history | |
resolve-undo.h | diff | blob | history | |
t/t2030-unresolve-info.sh | diff | blob | history |