PATCH: Use diff -u in fixincludes/check.tpl

Rainer Orth ro@CeBiTec.Uni-Bielefeld.DE
Tue Mar 2 20:31:00 GMT 2010


While looking at the output of make check in fixincludes, I noticed that
it is in context diff format by default.  I think the unidiff format is
easier to read and generally preferred by the GCC project, therefore I'd
like to propose the following patch.

Ok for mainline?

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


2010-02-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* check.tpl: Use diff -u.

diff -r 3db340b5c61b fixincludes/check.tpl
--- a/fixincludes/check.tpl	Thu Feb 25 17:53:59 2010 +0100
+++ b/fixincludes/check.tpl	Thu Feb 25 17:59:42 2010 +0100
@@ -135,7 +135,7 @@
     :
 
   else
-    ${DIFF:-diff} -c $f ${TESTBASE}/$f >&2 || :
+    ${DIFF:-diff} -u $f ${TESTBASE}/$f >&2 || :
     exitok=false
   fi
 done



More information about the Gcc-patches mailing list