winmerge icon indicating copy to clipboard operation
winmerge copied to clipboard

[BUG] All panes are read-only when WinMerge is launched as a Git merge tool during rebase

Open shirayuki opened this issue 3 weeks ago • 4 comments

Description

When WinMerge is launched in 3-way merge mode as a Git merge tool during a rebase conflict, all three panes are read-only.

The File -> Read-Only submenu shows Left Read-Only, Middle Read-Only, and Right Read-Only as checked, and none of these settings can be toggled.

Only Left Read-Only and Right Read-Only should be checked by default, and all three settings should be toggleable. The middle pane should be editable so that the user can resolve the merge conflict.

Steps to reproduce

  1. Configure WinMerge as the merge tool for Git.
  2. Perform a Git rebase that causes a merge conflict.
  3. WinMerge starts in 3-way merge mode.
  4. Open the File -> Read-Only menu.
  5. Observe that Left Read-Only, Middle Read-Only, and Right Read-Only are all checked and cannot be toggled.
  6. Since all three panes are read-only, it is impossible to modify the files and resolve the conflict.

WinMerge version

2.16.60.0

Platform

Windows x64

Additional information

Command Line: -u -wl -wr -fm -dl "Mine: ./test_LOCAL_153.txt" -dm "Merged: ./test_BASE_153.txt" -dr "Theirs: ./test_REMOTE_153.txt" ./test_LOCAL_153.txt ./test_BASE_153.txt ./test_REMOTE_153.txt -o test.txt

image

shirayuki avatar Nov 12 '26 12:11 shirayuki

In WinMerge 2.16.60, when the -o option is specified, merge editing is performed in the fourth pane (the KDiff3-style merge result pane) by default.

In this mode, all three input panes are read-only, so this is the expected behavior.

If you prefer the previous behavior, where the middle pane is editable, uncheck "Use Merge Result Pane for 2/3-way merge" on the Editor/Compare/Merge page of the Options dialog.

sdottaka avatar Nov 12 '26 13:11 sdottaka

I found that this is the intended behavior introduced by PR #3515.

The Merge Result pane was displayed at the bottom of the window, but I overlooked it because the Output pane was displayed below it.

Sorry for the confusion. This is not a bug. Thank you for the explanation!

shirayuki avatar Nov 12 '26 22:11 shirayuki

I also thought the new stable release is broken and revert to the old version. The release notes mention the PRs which went into it, but it's not really apparent that behaviour changed unless you actually look through all of the PRs. Would've been nice if something like this gets mentioned explicitly at the top of the release notes.

jmg2k avatar Nov 17 '26 14:11 jmg2k

@jmg2k

Thanks for the feedback. You're right, this behavior change should have been highlighted more clearly in the release notes. I'll make sure to do so in future releases.

sdottaka avatar Nov 18 '26 12:11 sdottaka