This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]