This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Use diff -u in fixincludes/check.tpl
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Bruce Korb <bkorb at gnu dot org>
- Date: Tue, 02 Mar 2010 21:31:14 +0100
- Subject: 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