Zachary Cutlip on Nostr: I've shared this before but it's been a while and probably was on twitter, so it's ...
I've shared this before but it's been a while and probably was on twitter, so it's worth a re-share
A lot of people don't know that `diff` (and `git diff`) have a several algorithms to choose from
They have various tradeoffs, mostly around performance vs readability & semantic accuracy vs overall diff size
For manual/visual diffing, I generally prefer 'histogram’, as it tends to be a closer representation of what *actually changed*
Here's a nice writeup
https://luppeng.wordpress.com/2020/10/10/when-to-use-each-of-the-git-diff-algorithms/
(1/n)
A lot of people don't know that `diff` (and `git diff`) have a several algorithms to choose from
They have various tradeoffs, mostly around performance vs readability & semantic accuracy vs overall diff size
For manual/visual diffing, I generally prefer 'histogram’, as it tends to be a closer representation of what *actually changed*
Here's a nice writeup
https://luppeng.wordpress.com/2020/10/10/when-to-use-each-of-the-git-diff-algorithms/
(1/n)