Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Meld has a <strong>hidden 3-way merge feature</strong> activated by passing in the 4th parameter:</p> <pre><code>meld $LOCAL $BASE $REMOTE $MERGED </code></pre> <p>The right and left panes are opened in read-only mode, so you can't accidentally merge the wrong way around. The middle pane shows the result of merge. For the conflicts it shows the base version so that you can see all the important bits: original text in the middle, and conflicting modifications at both sides. Finally, when you press the "Save" button, the $MERGED file is written - exactly as expected by git.</p> <p>The ~/.gitconfig file I use contains the following settings:</p> <pre><code>[merge] tool = mymeld conflictstyle = diff3 [mergetool "mymeld"] cmd = meld --diff $BASE $LOCAL --diff $BASE $REMOTE --diff $LOCAL $BASE $REMOTE $MERGED </code></pre> <p>this opens meld with 3 tabs, 1st and 2nd tab containing the simple diffs I'm trying to merge, and the 3rd tab, open by default, shows the 3-way merge view.</p> <p><em>Now, the reason the feature is hidden is that it's not polished enough yet. It's very useful as it is now, but Kai Willadsen, the meld author, pointed to few wrinkles that need ironing out. For example there's no GUI to start the 3-way merge mode, command line syntax is a bit arcane, and such. If you speak python and have some time on your hands - you know what to do.</em></p> <p>Edit: In newer versions of Meld, the synax has changed slightly. This was in the comments, but it belongs in the answer.</p> <p>The meld command now uses the --output option, so the last line from the snippet above should be:</p> <pre><code>cmd = meld --diff $BASE $LOCAL --diff $BASE $REMOTE --diff $LOCAL $BASE $REMOTE --output $MERGED </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload