autobuild.sh: git diff when astyle errors detected.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: Ife57a75c8e5ea6f7cc43d12a73a487b82e1bcd65
This commit is contained in:
Jim Harris 2016-01-14 09:56:42 -07:00 committed by Gerrit Code Review
parent 0e6463d9b3
commit b61b099030

View File

@ -14,6 +14,7 @@ if hash astyle; then
astyle --options=.astylerc "*.h" >> astyle.log
if grep -q "^Formatted" astyle.log; then
echo " errors detected"
git diff
sed -i -e 's/ / /g' astyle.log
grep --color=auto "^Formatted.*" astyle.log
echo "Incorrect code style detected in one or more files."