get file path from svn diff file with PHP and C
- by coderex
hi i have a file having svn diff i wish to extract the filenames form the diff.
How to write the parser for that..
Index: libs/constant.php
===================================================================
--- libs/constant.php (revision 1243)
+++ libs/constant.php (revision 1244)
@@ -26,5 +26,5 @@
// changesss
-
+// test 2
?>
\ No newline at end of file
Index: libs/Tools.php
===================================================================
--- libs/Tools.php (revision 1243)
+++ libs/Tools.php (revision 1244)
@@ -34,5 +34,5 @@
// another file an change
-
+// test
?>
\ No newline at end of file
Sample output.
libs/constant.php
libs/Tools.php
How to write parser in PHP and C.