Little tool to simplify unified diffs, e.g. to remove lines only containing whitespace changes
My homepages provides standalone simplify diff binaries for Windows and Linux.
If you want to compile it, you need Lazarus and my rcmdline unit. Then just open simplifydiff.lpi in Lazarus and click compile.
It is a commandline program, so you can simply call it with:
simplifydiff < broken.diff > improved.diff
simplifydiff --help
prints more advanced option.
A too verbose diff like:
Index: smallUsefulFunctions.cpp
===================================================================
--- smallUsefulFunctions.cpp (revision 113)
+++ smallUsefulFunctions.cpp (working copy)
@@ -1,6 +1,6 @@
abc
-old
-equal
-more equal
-even more equal
-even even more equal
+new
+equal
+more equal
+even more equal
+even even more equal
is simplified to
Index: smallUsefulFunctions.cpp
===================================================================
--- smallUsefulFunctions.cpp (revision 113)
+++ smallUsefulFunctions.cpp (working copy)
@@ -1,5 +1,5 @@
abc
-old
+new
equal
more equal
even more equal