Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automated diff reporting

Tags:

diff

winmerge

I need a diff tool that has a command line option to create and save a diff report that looks easy to read, something like the html report produced by WinMerge. I have a few hundred files that I need to compare and it's not practical to have to open the files and manually and save the report.

like image 215
Michael Avatar asked Sep 19 '11 16:09

Michael


2 Answers

I did find a tool that does exactly that: http://sourceforge.net/projects/diff2html

It's a bash script that uses diff(1) and creates an HTML page from the output with colour-coded diffs.

like image 142
Michael Avatar answered Nov 19 '22 06:11

Michael


Have you looked at the command line option in WinMerge? http://manual.winmerge.org/Command_line.html

You might need to use something like AutoHotkey to automate saving the reports created by WinMerge: http://www.autohotkey.com/

like image 1
Matthew Lock Avatar answered Nov 19 '22 07:11

Matthew Lock