Monday, January 16, 2012

Parsing diffs (generated with git-diff) with PHP


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.

1 comment:

  1. There's the xdiff PHP extension. Failing that, you can always exec() the actual diff commandline tools from within your script.

    ReplyDelete