

Returning to a Better Diff Tool
source link: https://fuzzyblog.io/blog/software_engineering/2017/04/18/returning-to-a-better-diff-tool.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Returning to a Better Diff Tool
Apr 18, 2017
So this morning I needed to diff some fairly complex html and see the differences. This is part of a page archiver I'm building and the command:
diff 2094f14b81ddd5d6cf8eab7a487e97e4f34935c8.html 68e0f2de414da40d33a1728d6c5c592d12fc54ae.html
just didn't give me anything really intelligible (or I'm too dumb to read raw diff output; its possible). I've always maintained that the reason I write a blog is to capture my own knowledge so I turned to a post I wrote a few months ago on this very topic.
Ah Ha! I need to use OpenDiff, a part of Xcode. Unfortunately this gave me:
opendiff 2094f14b81ddd5d6cf8eab7a487e
97e4f34935c8.html 68e0f2de414da40d33a1728d6c5c592d12fc54ae.html
xcode-select: error: tool 'opendiff' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a com
mand line tools instance
Messing around with an Xcode install always seems to mean rebooting your machine and I have an active crawl going on my development box so that was out of the question. Looking back to my diff article, one of the other tools was Meld which is a part of HomeBrew. The beauty of anything HomeBrew is always the installation model. Brew even helpfully tells you when the installation model changes which it did this time so I now needed to use:
brew install caskroom/cask/meld
A very, very quick command:
meld 2094f14b81ddd5d6cf8eab7a487e97e4 f34935c8.html 68e0f2de414da40d33a1728d6c5c592d12fc54ae.html
gave me exactly the info I needed:

Posted In: #software_engineering #diff
Recommend
-
89
sebastian/diff Diff implementation for PHP, factored out of PHPUnit into a stand-alone component. Installation You can add this library as a local, per-project dependency to your project using
-
60
Make the git diff output be more useful when diffing minified .js and .css files.
-
28
Clojure and EDN diff tool Oct 8, 2020 • Yehonathan Sharvit Compare recursively two Clojure data structures a and b. Comparison is updated as yo...
-
9
TL;DR: Radar built an open source tool for performing side-by-side evaluations of JSON APIs. We hope you find it useful, too. Introduction Radar engineers needed a tool for side-by-side evaluations of changes to the s...
-
16
It's Difftastic! Difftastic is an experimental structured diff tool that compares files based on their syntax. It is very much unfinished. It works reasonably on very parenthesised data (lisps, JSON), it works sometimes on oth...
-
7
Fatih Pense September 19, 2021 1 minute read ...
-
6
Use Beyond Compare as a Git Diff/Merge Tool in OS X Comments: Tags: WalkthroughTools
-
7
pdf-diff A tool for visualizing differences between two pdf files. Mainly dedicated to editors that usually spends a lot of hours on several pdf.
-
4
git - use kdiff3 as a diff/merge toolPosted on 2023, Jun 11 One min readTo use kdiff3 as your diff tool and merge tool in git, run the following commands:
-
6
Better git diff with deltaPublished: 2024.02.25 · 1 minute readAfter switching from Vis...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK