Skip to content

Merge conflicts do not detect diff3 conflict style #28507

@gediminasz

Description

@gediminasz
  • VSCode Version: 1.13.0
  • OS Version: macOS Sierra 10.12.5

Steps to Reproduce:

  1. Set git conflict style to diff3. In ~/.gitconfig:
[merge]
    conflictstyle = diff3
  1. This results in merge conflict format as shown below. You can copy paste this into a blank tab:
<<<<<<< Updated upstream
foo
||||||| merged common ancestors
bar
=======
baz
>>>>>>> Stashed changes
  1. Screenshot:

image

  1. If you click "Accept Current Change", the "merged common ancestors" remains:

image

Some other notes:

  • "Accept Incoming Change" works as expected.
  • "Accept Both Changes" results in the following:

image

  • "Compare Changes" fails with error if not in git repository, or something like this:

image

(Note the trailing "merged common ancestors" on the left side)

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalitymerge-conflictMerge conflict decorations and actionsverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions