diff2html - Pretty-printing big patches

D

Dave Burt

I've just written a script which takes a unified recursive diff patch (ie
the kind generated by 'diff -ur ...') on standard input and writes a
side-by-side format html page to stdout, and thought someone else could
possibly find it useful.

It's at http://www.dave.burt.id.au/ruby/diff2html.rb

Any feedback appreciated. Including any pointers to existing tools that do
this (I'm sure they exist).

Cheers,
Dave
 
D

Dave Burt

I said:
I've just written a script which takes a unified recursive diff patch (ie
the kind generated by 'diff -ur ...') on standard input and writes a
side-by-side format html page to stdout, and thought someone else could
possibly find it useful.

It's at http://www.dave.burt.id.au/ruby/diff2html.rb

Any feedback appreciated. Including any pointers to existing tools that do
this (I'm sure they exist).

Anyone who's downloaded it, or is interested, the file has been updated with
a bug fix.
(Output was mildly broken - "<" displaying as "&lt;" and tabs not being
represented by hard whitespace).

The new version's still at http://www.dave.burt.id.au/ruby/diff2html.rb

Cheers,
Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,160
Messages
2,570,889
Members
47,420
Latest member
ZitaVos505

Latest Threads

Top