Skip to content

Comment on Diff So Fancy: make Git diffs look goodparent

Comments

I've experimented with patience diff, but not seen it deliver reliably superior results than myers (the current default).

I saw it deliver superior results enough that I spent a while figuring out how to get vimdiff to use patience.

And? What do I need to do to get that? :)

Oh, just saw this, it involves invoking the proper git tools to get the diff, and then converting the diff format from unified to ed format. The later is actually easier than it might seem as unified diffs start all of their special information in column 0; IIRC I wrote an awk script to do this. It's on my work machine though, so I don't have it handy.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.