I need to parse diff files (as created by Git).
I've already tried Text_Diff from PEAR and " PHP class for parsing diffs " solution. However, both can only generate diffs themselves.
Does anyone know ready-made solution?
p.s.: writing simple diff-viewer script.
There's the xdiff PHP extension. Failing that, you can always exec() the actual diff commandline tools from within your script.
ReplyDelete