I really love diffdiff.net for quickly looking at diffs -- it does a great job of highlighting diffs inside a single line

used it yesterday to debug a networking issue by diffing two tcpdump outputs and it was SO helpful, it made it immediately obvious that the MSS was different between the two connections

(the screenshot isn't the actual bug, just a diff of two tcpdump outputs)

@b0rk i dont believe "git diff" will do a side by side compare, but i use `git diff --word-diff=color` pretty often, so that it highlights word changes instead of whole lines.

if you add `--no-index` you can diff two files against each other regardless of whether they are in a git repo or not.

Follow

@vfig @b0rk I do this too, mostly because it already exists on many questions these days, so I don't have to install anything or have internet access. I also sometimes use --word-diff-regex to change the concept of a word (e.g. if I want to look for single character changes).

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.