Convert source diff file to html color output

Does anyone know of a script that can accept a raw diff file and print the HTML output quite well (which would be easier to view / email message)? A google search returned me some results, such as http://kafka.fr.free.fr/diff2html/

However, all of these scenarios require two files to be entered (they do not even accept two directories). My diff output is the difference between two svn branches

+5
source share
5 answers

Finally, I used diff2html.py to generate static html output of parallel diff, given my unified diff intput

+6
source

coderev. ...

+3

cdiff, , , , incremental color, - , diff stdin .

raw diff , cdiff .

PS: coderev cdiff, , cdiff , :

+3

, . pygments diffs .

+1

The best option for me is aha (Ansi HTML Adapter - https://github.com/theZiz/aha )

$ svn diff | colordiff | aha > /tmp/diff.html
0
source

All Articles