]> git.ipfire.org Git - thirdparty/git.git/commit - t/t6042-merge-rename-corner-cases.sh
t6042: add tests for consistency in file collision conflict handling
authorElijah Newren <newren@gmail.com>
Thu, 8 Nov 2018 04:40:22 +0000 (20:40 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 8 Nov 2018 05:23:53 +0000 (14:23 +0900)
commitbb05c9f7595274bcfabf775ea51b4765c503b055
tree55961bc821036d927f3f2e6e91f57a92c0595d1f
parent4f445453136b8c3575bc4d4c45fc9b7930688a5c
t6042: add tests for consistency in file collision conflict handling

Add testcases dealing with file collisions for the following types of
conflicts:
  * add/add
  * rename/add
  * rename/rename(2to1)

All these conflict types simplify down to two files "colliding"
and should thus be handled similarly.  This means that rename/add and
rename/rename(2to1) conflicts need to be modified to behave the same as
add/add conflicts currently do: the colliding files should be two-way
merged (instead of the current behavior of writing the two colliding
files out to separate temporary unique pathnames).  Add testcases which
check this; subsequent commits will fix the conflict handling to make
these tests pass.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6042-merge-rename-corner-cases.sh