]> source.dussan.org Git - jgit.git/commit
ResolveMerger: Fix the issue with binary modify-modify conflicts 33/1176833/5
authorSruteesh <sruteesh.oss@protonmail.com>
Wed, 14 Feb 2024 16:49:39 +0000 (22:19 +0530)
committerMatthias Sohn <matthias.sohn@sap.com>
Thu, 25 Apr 2024 21:42:51 +0000 (23:42 +0200)
commit567315af548017cc58eadb91bba493b74c391009
tree71e95ebea66eb0bbd5c99e727d82ad6e3c96e5fa
parente97623d3ee00f6f0fe3921fbd496364a9eea0a84
ResolveMerger: Fix the issue with binary modify-modify conflicts

1) If the file was marked as binary by git attributes, we should add the
path to conflicts if content differs in OURS and THEIRS
2) If the path is a file in OURS, THEIRS and BASE and if it is a binary
in any one of them, no content merge should be attempted and the file
content is kept as is in the work tree

Bug: jgit-14
Change-Id: I9201bdc53a55f8f40adade4b6a36ee8ae25f4db8
org.eclipse.jgit.test/tst/org/eclipse/jgit/attributes/merge/MergeGitAttributeTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/merge/MergerTest.java
org.eclipse.jgit/src/org/eclipse/jgit/merge/ResolveMerger.java