Skip to content

Bug: 3-way merge fails to include non-conflicting adjacent insertions in Result buffer #353

@XXiaoA

Description

@XXiaoA

When performing a 3-way merge, codediff fails to correctly populate the Result buffer if both OURS and THEIRS have different but non-overlapping additions within the same code block (e.g., a list of require statements). Instead of merging them or marking specific lines, it often leaves the Result buffer with only the common base, effectively "dropping" the new code from both sides.

Screenshots
Problem in codediff

Image

Correct behavior in diffview:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions