]> git.ipfire.org Git - thirdparty/git.git/commit - merge-recursive.c
RE: [PATCH] Avoid rename/add conflict when contents are identical
authorSchalk, Ken <ken.schalk@intel.com>
Wed, 1 Sep 2010 20:15:32 +0000 (13:15 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 3 Sep 2010 18:26:49 +0000 (11:26 -0700)
commitd5af51053cd060d7a4893f030626b04351554d1b
treeb9d94c906c213c3ddb8f6cade1d96815fcce006c
parent22da742982eeeb95b6fb4cd757509a8c4c2202d8
RE: [PATCH] Avoid rename/add conflict when contents are identical

>Due to this this (and maybe all the tests) need to depend on the
>SYMLINKS prereq.

Here's a third attempt with no use of symlinks in the test:

Skip the entire rename/add conflict case if the file added on the
other branch has the same contents as the file being renamed.  This
avoids giving the user an extra copy of the same file and presenting a
conflict that is confusing and pointless.

A simple test of this case has been added in
t/t3030-merge-recursive.sh.

Signed-off-by: Ken Schalk <ken.schalk@intel.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
merge-recursive.c
t/t3030-merge-recursive.sh