author | Junio C Hamano <gitster@pobox.com> | |
Tue, 14 Aug 2007 22:33:07 +0000 (15:33 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 15 Aug 2007 05:20:01 +0000 (22:20 -0700) | ||
commit | b798671fa935492ce511766bc99fb26b2892499b | |
tree | 6a28de76dea881193189cee59a6c499a254d4767 | tree | snapshot |
parent | 9fa3465d6be83c08ed24762c82eb33cb005729f3 | commit | diff |
merge-recursive: do not rudely die on binary merge
When you try to merge a path that involves binary file-level
merge, merge-recursive died rudely without cleaning up its own
mess. A files added by the merge were left in the working tree,
but the index was not written out (because it just punted and
died), so it was cumbersome for the user to retry it by first
running "git reset --hard".
This changes merge-recursive to still warn but do the "binary"
merge for such a path; leave the "our" version in the working
tree, but still keep the path unmerged so that the user can sort
it out.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When you try to merge a path that involves binary file-level
merge, merge-recursive died rudely without cleaning up its own
mess. A files added by the merge were left in the working tree,
but the index was not written out (because it just punted and
died), so it was cumbersome for the user to retry it by first
running "git reset --hard".
This changes merge-recursive to still warn but do the "binary"
merge for such a path; leave the "our" version in the working
tree, but still keep the path unmerged so that the user can sort
it out.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
merge-recursive.c | diff | blob | history | |
t/t6027-merge-binary.sh | [new file with mode: 0755] | blob |