Skip to main content

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.


Comments

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

    ReplyDelete

Post a Comment

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?