[Pdx-pm] diff_painter.pl
Matthew Wickline
m_pm_pdx at wickline.org
Wed Mar 9 19:34:15 PST 2011
Speaking of "worst useful hack", I was recently convinced to put this
up on github.
https://github.com/wickline/diff_painter/blob/master/diff_painter.pl
Pipe diffs to diff_painter.pl and they look prettier.
...diff_painter.pl itself is very un-pretty.
unpainted:
http://wickline.org/diff_painter/exhibit_A.png
uh... some stuff changed
typical diff colorizer:
http://wickline.org/diff_painter/exhibit_B.png
uh... some stuff changed and now it's in color
piped to diff_painter.pl:
http://wickline.org/diff_painter/exhibit_C.png
holy painless code reviews, batman!
diffs are optimized for patch. Painted diffs are optimized for humans.
Sometimes it messes up. Then you get "christmas barf".
Your coworkers will thank you if you share it with them. Also, share
ack if you haven't yet.
http://betterthangrep.com/
-matt
More information about the Pdx-pm-list
mailing list