[cologne-pm] Fwd: diff_painter.pl

Aristoteles Pagaltzis pagaltzis at gmx.de
Mo Apr 11 02:50:28 PDT 2011


> From: Matthew Wickline <m_pm_pdx at wickline.org>
> To: Portland Perl Mongers <pdx-pm-list at pm.org>
> Subject: diff_painter.pl
> Date: Wed, 9 Mar 2011 19:34:15 -0800
> Message-ID: <AANLkTikfcM33yAi9SxjdLCu3WzSDbLVO+pctS5J=rfZ2 at mail.gmail.com>
> Sender: pdx-pm-list-bounces+pagaltzis=gmx.de at pm.org
> List-Id: Portland Perl Mongers <pdx-pm-list.pm.org>
>
> 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
> _______________________________________________
> Pdx-pm-list mailing list
> Pdx-pm-list at pm.org
> http://mail.pm.org/mailman/listinfo/pdx-pm-list


Mehr Informationen über die Mailingliste cologne-pm