diff options
author | Thomas Wolf <twolf@apache.org> | 2022-08-16 01:02:21 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2022-09-07 15:02:02 +0200 |
commit | a8e683fef6acf3e9f00ac2648fff60b13a28fb13 (patch) | |
tree | a83746d664b648d784aa441e18b28a33f2a1879d /org.eclipse.jgit.packaging | |
parent | 583bf00233d2c3f0fc6b1e90f940d31e2dec5ad0 (diff) | |
download | jgit-a8e683fef6acf3e9f00ac2648fff60b13a28fb13.tar.gz jgit-a8e683fef6acf3e9f00ac2648fff60b13a28fb13.zip |
[merge] Fix merge conflicts with symlinks
Previous code would do a content merge on symlinks, and write the merge
result to the working tree as a file. C git doesn't do this; it leaves
a symlink in the working tree unchanged, or in a delete-modify conflict
it would check out "theirs".
Moreover, previous code would write the merge result to the link target,
not to the link. This would overwrite an existing link target, or fail
if the link pointed to a directory.
In link/file conflicts or file/link conflicts, C git always puts the
file into the working tree.
Change conflict handling accordingly. Add tests for all the conflict
cases.
Bug: 580347
Change-Id: I3cffcb4bcf8e336a85186031fff23f0c4b6ee19d
Signed-off-by: Thomas Wolf <twolf@apache.org>
Diffstat (limited to 'org.eclipse.jgit.packaging')
0 files changed, 0 insertions, 0 deletions