TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Meld is a visual diff and merge tool targeted at developers

334 pointsby danielsokilabout 3 years ago

52 comments

brunnoabout 3 years ago
As a long time Sublime Text[1] user, I&#x27;ve been using Sublime Merge[2] since the day it&#x27;s been launched and it brings me the same speed and minimalism I get with Sublime Text and has evolved quite a lot to be able to do most things I need in a merge tool.<p>Not affiliated with them in any way by the way.<p>[1] <a href="https:&#x2F;&#x2F;www.sublimetext.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.sublimetext.com&#x2F;</a> [2] <a href="https:&#x2F;&#x2F;www.sublimemerge.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.sublimemerge.com&#x2F;</a>
评论 #30744820 未加载
评论 #30745306 未加载
评论 #30744105 未加载
评论 #30747242 未加载
wallstprogabout 3 years ago
Another fan of Beyond Compare here, but I want to point out something everyone else has missed so far, which is that BC is great for comparing all sorts of files, not just code.<p>For example, I use its &quot;Table Compare&quot; feature to compare log files from different machines, sorted by timestamp. This lets me easily see the order of operations in a distributed system.
j1eloabout 3 years ago
I&#x27;ve been using Meld since years ago, and it&#x27;s my default go-to diff viewer. The visual style they implemented helps me a lot to reason about how lines have been added or deleted from documents in the side by side comparison. Very neat!<p>The directory contents tree diff is also really useful.<p>I wish they made it even easier the basic case of comparing aribtrary text. Maybe it should be the default mode after opening the program, instead of having to click on a couple buttons, because I use it <i>a lot</i> to manually paste pieces of text. For example, logs from a server during testing, to compare what went different between runs.<p>Another welcomed addition would be &quot;ignore masks&quot;. Some kind of regex input that could be used to quickly tell Meld which parts of the text to skip comparing. That way, comparison of log files could be made where a timestamps column would be ignored.
评论 #30744455 未加载
评论 #30743003 未加载
diego_moitaabout 3 years ago
IMHO, Meld is the second best open source tool for doing this.<p>On Windows, WinMerge[1] is a better alternative. Too bad is Windows only.<p>For a non-FOSS and cross platform solution I recommend BeyondCompare (U$30.00)[2]. It replicates most of WinMerge UI.<p>[1] <a href="https:&#x2F;&#x2F;winmerge.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;winmerge.org&#x2F;</a><p>[2] <a href="https:&#x2F;&#x2F;scootersoftware.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;scootersoftware.com&#x2F;</a>
评论 #30743572 未加载
评论 #30745590 未加载
评论 #30745812 未加载
评论 #30747762 未加载
评论 #30743777 未加载
codedokodeabout 3 years ago
Meld might be useful for comparison, but in my opinion it is inconvenient as a git merge tool. For git merge I need four panels: original file, version A, version B, merged result. Meld has only three panels.<p>Currently I am using KDiff3. It is a little buggy and doesn&#x27;t have a nice UI but it is the best open source merging tool that I am aware of. It allows choosing lines from original file, from A, B and manual editing.<p>I noticed that certain popular and highly praised commercial IDE also provides only 3-panel interface for merging. This makes resolving conflicts more difficult and prone to errors.
评论 #30745622 未加载
评论 #30744684 未加载
评论 #30743959 未加载
评论 #30746587 未加载
评论 #30747519 未加载
评论 #30753707 未加载
loloquwowndueoabout 3 years ago
Since everyone else is mentioning other tools, here’s my mention for vimdiff. I think I have meld installed but rarely use it because vimdiff is usually enough. As a bonus I get to use my usual editing keys when working with it.
评论 #30747215 未加载
noselasdabout 3 years ago
If you want to use it with git:<p><pre><code> git config --global diff.tool meld git config --global --add difftool.prompt false </code></pre> And use git difftool instead of git diff
评论 #30742885 未加载
bhaakabout 3 years ago
For visualization I really like kdiff3.<p>Or on terminals <a href="https:&#x2F;&#x2F;github.com&#x2F;mookid&#x2F;diffr" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mookid&#x2F;diffr</a> with specific settings that use 256 colors for highlighting word differences as well.<p>But for manual merging I haven&#x27;t found anything better than ediff. That&#x27;s the only reason I install emacs on my work machines. Seemless integration into a text editor is just unbeatable.
评论 #30743559 未加载
dflockabout 3 years ago
My .gitconfig for using meld at the git merge tool:<p><pre><code> [alias] mt = mergetool [merge] tool = mymeld conflictstyle = diff3 [mergetool &quot;mymeld&quot;] # Gives you meld, with three comparison tabs. Assuming you&#x27;re merging others changes into # your branch, this shows you: # - 1st tab: yours|merged result|theirs (do the merge here into the middle pane) # - 2nd tab: base vs your changes (look at just your changes) # - 3rd tab: base vs their changes (look at just their changes) cmd = meld $LOCAL $BASE $REMOTE --output $MERGED --diff $BASE $LOCAL --diff $BASE $REMOTE --auto-merge</code></pre>
评论 #30748423 未加载
laurent123456about 3 years ago
BeyondCompare is much better and available on macOS too.
评论 #30743184 未加载
评论 #30744424 未加载
评论 #30744020 未加载
评论 #30743008 未加载
评论 #30743212 未加载
评论 #30745692 未加载
HelloNurseabout 3 years ago
&gt; On OS X, Meld is not yet officially supported. For pre-built binaries, these OS X builds are the best option.<p>&gt; You can also get Meld from MacPorts, Fink or Brew; none of these methods are supported.<p>Can anyone recommend any of these unsupported options? The best diff GUI tool I&#x27;ve been able to find for OSX is DiffMerge (<a href="https:&#x2F;&#x2F;sourcegear.com&#x2F;diffmerge&#x2F;" rel="nofollow">https:&#x2F;&#x2F;sourcegear.com&#x2F;diffmerge&#x2F;</a>) on the App Store, and I&#x27;d like to have a tree view for folder comparisons.
评论 #30753624 未加载
评论 #30747226 未加载
评论 #30746697 未加载
评论 #30746473 未加载
maxekmanabout 3 years ago
Maybe strange question; but which diff and merge tools are not targeted at developers?<p>Edit: what-&gt;which
评论 #30746128 未加载
评论 #30745774 未加载
maccardabout 3 years ago
It&#x27;s not open source, and comes with all the baggage of perforce, but p4merge and p4diff are just excellent tools that I install on every machine I work on.
评论 #30744505 未加载
评论 #30749443 未加载
评论 #30742747 未加载
mistrial9about 3 years ago
<a href="https:&#x2F;&#x2F;discourse.gnome.org&#x2F;tag&#x2F;meld" rel="nofollow">https:&#x2F;&#x2F;discourse.gnome.org&#x2F;tag&#x2F;meld</a> ## forum<p><a href="https:&#x2F;&#x2F;gitlab.gnome.org&#x2F;GNOME&#x2F;meld" rel="nofollow">https:&#x2F;&#x2F;gitlab.gnome.org&#x2F;GNOME&#x2F;meld</a> ## code<p>Meld 3.21.1 — 07 Jan 2022 -- thanks Meld !!
arcticbullabout 3 years ago
Am I the only person who opens the whole conflicted project in VSCode and project-wide searches for &quot;&gt;&gt;&gt;&gt;&gt;&gt;&quot;
评论 #30747798 未加载
评论 #30747490 未加载
评论 #30747499 未加载
评论 #30747682 未加载
Zardoz84about 3 years ago
I try a few times, and always I get back to kdiff3. I feel less confuse with the 3 way view and separated merge output view.
JonChesterfieldabout 3 years ago
I use meld by default. Honestly it&#x27;s not great. I kind of miss beyondcompare. It is however readily available and works well enough.
zemabout 3 years ago
I use vimdiff and occasionally kdiff3 for git merging. what I really like meld for is merging two directory trees (e.g. reconciling two forks of the same code), they have the best tree diff ux of any of the common tools I&#x27;ve tried.
forrestthewoodsabout 3 years ago
I’ve been an Araxis Merge man my whole career. Most of my peers are either Araxis or Beyond Compare.<p>It’d be a great if an OSS tool was as good or better. But my experience thus far is that Araxis&#x2F;BC3 are simply much better.
wackroabout 3 years ago
I was given a fresh copy of Windows at work the other week and had to install all tooling afresh. I decided to take the opportunity to try meld.<p>The first merge I did, even after reading the website, I couldn&#x27;t fathom it. I understood the paradigm of merging into $BASE but couldn&#x27;t figure out how to simply take these 5 lines from $REMOTE and these 3 from $LOCAL, so went back to the trusty Beyond Compare.<p>Might give it another shot.
tpoacherabout 3 years ago
I&#x27;m an xxdiff man myself: <a href="https:&#x2F;&#x2F;furius.ca&#x2F;xxdiff&#x2F;" rel="nofollow">https:&#x2F;&#x2F;furius.ca&#x2F;xxdiff&#x2F;</a><p>I don&#x27;t like the whole &quot;balloons with tails&quot; thing meld does. xxdiff strikes the best balance between &quot;being a graphical tool&quot; and &quot;not having distracting clutter&quot; in my opinion.
tedyoungabout 3 years ago
Is Meld aware of the programming language when it does diffs? The problem I have with many diff tools is that they&#x27;ll detect block moves without regard for things like method boundaries. Instead of showing the change as moving a method&#x27;s ordering, with some changes within those methods, most diff tools treat it as just text moves and changes.<p>So to me, &quot;targeted at developers&quot; should mean something more than what Meld seems to offer (i.e., more than just syntax highlighting and regex filtering).<p>It&#x27;s disappointing that programming language-sensitivity isn&#x27;t more common. [I developed a Visual Basic compare&#x2F;merge app in the early 90s that did a good job of this because it did extra work to understand the structure of the code, splitting methods and sorting them before comparing.]
评论 #30746049 未加载
评论 #30746064 未加载
ntnsndrabout 3 years ago
I have used Meld very happily for years on various Linuxes. But am not a developer—use it mainly for sync conflicts on things like to-do lists and article drafts. Thank you builders! It is an awesome tool.
Aardwolfabout 3 years ago
It&#x27;s my favorite and default diff viewer.<p>I remember at one point there was a new version (based on gtk3 perhaps) that didn&#x27;t work as well (useless type of scrollbars and slow) and I did some shenanigans to have an older version again on archlinux. However now even fresh installs do look and work good, I&#x27;m not sure what happened to that new version, maybe they improved the gtk3 based one to be as good as the one before it and I don&#x27;t notice the difference anymore...
nevesabout 3 years ago
Sorry, Meld is nice, but if you use version control you are handicapped if not using a 3 way diff program.<p>I never found one with features good enough to make me change from Kdiff3.
评论 #30746012 未加载
blobbersabout 3 years ago
Love when ancient tools get reposted ;-)<p>This is older than most people here!
Klasiasterabout 3 years ago
On the terminal I find `ydiff -s --wrap --width=0` very good for a comprehensible side-by-side diff: <a href="https:&#x2F;&#x2F;github.com&#x2F;ymattw&#x2F;ydiff" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ymattw&#x2F;ydiff</a><p>I definded this wrapper script ~&#x2F;bin&#x2F;git-ydiff-s:<p><pre><code> #!&#x2F;bin&#x2F;sh git diff &quot;$@&quot; | ydiff -s --wrap --width=0 </code></pre> with which you can do `git ydiff-s` in your repos easily.
runnerupabout 3 years ago
I purchased Araxis Merge but I still find myself using Meld for the vast, vast majority of my 2- and 3- way Diffing.<p>It’s slightly tricky to integrate into Sourcetree but once you configure Sourcetree with the correct command line args it works quite painlessly.<p>Meld is extremely performant too.<p>Another text editor I love is “010 Editor”, it’s the only windows app I’ve found that works well on 2+ GB files without slowing my computer down.
评论 #30748552 未加载
thunderbongabout 3 years ago
On Windows, how does Meld compare with WinMerge[0]?<p>[0]: <a href="https:&#x2F;&#x2F;winmerge.org" rel="nofollow">https:&#x2F;&#x2F;winmerge.org</a>
评论 #30743267 未加载
david_dracoabout 3 years ago
Meld is great. The only nitpick I have is that winmerge was more efficient in resolving a file with the alt-down alt-left&#x2F;right commands going one diff block at a time.<p>In meld, these commands operate depending on focus. When the focus is in the left file, alt-right merges <i>to</i> the right, but you cannot do alt-left to merge <i>from</i> the right file.
wooptooabout 3 years ago
I use both Meld and Diffuse[1] depending on what I do. I find Diffuse represents diffs better visually, while Meld being better for actually merging contents since you can just click on those arrows.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;MightyCreak&#x2F;diffuse" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;MightyCreak&#x2F;diffuse</a>
layer8about 3 years ago
The file contents two-way diff&#x2F;merge visualization reminds me of NetBeans’ [0].<p>[0] e.g. <a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;10594653&#x2F;is-there-any-way-to-customize-eclipse-diff-viewer-like-netbeans" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;10594653&#x2F;is-there-any-wa...</a>
pmontraabout 3 years ago
I used it a lot many years ago, not so much now. I don&#x27;t even know if it&#x27;s on my laptop. I&#x27;m not using any other alternative. Maybe git merge and git diff are good enough for my needs. I&#x27;m also using both gitk and gitg, usually gitg. Maybe they qualify as alternatives.
sandGorgonabout 3 years ago
these days, vscode does a fantastic job. you just use <i>code --diff file1.js file2.js</i>
评论 #30743761 未加载
yborisabout 3 years ago
Consider an alternative: <i>diff2html</i> - an npm CLI you install and summon with 1 command launches your default browser with a visual diff.<p><a href="https:&#x2F;&#x2F;diff2html.xyz&#x2F;" rel="nofollow">https:&#x2F;&#x2F;diff2html.xyz&#x2F;</a>
hprotagonistabout 3 years ago
after all these years i still mostly use kdiff3
评论 #30742790 未加载
nhoughtoabout 3 years ago
Haven&#x27;t tried Meld and i&#x27;m always up for an enhanced workflow but merge&#x2F;diff is all about context, the more context you can add about where something came from &#x2F; is going to, its history etc the better. In this regard it is almost impossible (never say never) to beat your IDE for the possibility of a good merge&#x2F;diff, it has all the context plus syntax highlighting, compiler errors &#x2F; build scripts etc. I can merge two files, plus git blame where the changes came from, plus syntax highlight and see likely compile errors, remove unused imports and apply consistent formatting all in one step.<p>This is why I always use IntelliJ merge&#x2F;diff for supported languages, it just has so much more information about the merge&#x2F;diff already available.
rambambramabout 3 years ago
I only recently used this for the first time and I must say: perfect for a quick file comparison. Don&#x27;t know about other use cases. Nice to see it mentioned here.
rhn_mk1about 3 years ago
With the switch to GTK3, it no longer fits on my screen (and headerbars stand out like a sore thumb too). Kdiff3 was confusing for a moment, but does a good job too.
whateveracctabout 3 years ago
I ran Meld on GHC Core before and after a subtle optimization to some slow Haskell. It called out exactly the improvement. Very cool to see.
pxeger1about 3 years ago
What is the use case for a tool like this? I&#x27;ve never felt the need for anything beyond `git diff` (which uses `less`)
评论 #30747247 未加载
risabout 3 years ago
&quot;Diffuse&quot; has come to my rescue in the past when I&#x27;ve needed to do the odd 6-way diff (don&#x27;t ask)
wetpawsabout 3 years ago
P4V is still the best cross platform diff&#x2F;merge tool by far, and too bad it is relatively obscure.
raszabout 3 years ago
My memories of meld from the past: slow, confusing, crashed. Havent touched it in 10 years since.
umviabout 3 years ago
I used to use meld before switching to vscode&#x27;s built in visual diff
throwaway81523about 3 years ago
Yeah I know I&#x27;m an emacs zealot, but emerge works fine for me.
评论 #30752768 未加载
Xenoamorphousabout 3 years ago
I wish it worked better in MacOS. Still my favourite tool.
评论 #30746513 未加载
juddlyonabout 3 years ago
Kaleidoscope on macOS isn’t cheap but has a great DX.
评论 #30745918 未加载
spycabout 3 years ago
Meld rocks, thanks for making Meld Software Libre!
thefzabout 3 years ago
Love Meld, been using it for a while now.
LeicaLatteabout 3 years ago
Meld gets so many things right.
albina82about 3 years ago
Hi, good tools I would add to this set yet &lt;a href=&quot;<a href="https:&#x2F;&#x2F;www.4wdtalk.com&#x2F;nebo-flashlight-review&#x2F;&quot;&gt;nebo" rel="nofollow">https:&#x2F;&#x2F;www.4wdtalk.com&#x2F;nebo-flashlight-review&#x2F;&quot;&gt;nebo</a> flashlight review&lt;&#x2F;a&gt; to protect yourself from power outages sky review flashlight you can do on our website