From b61b099030a00fcf96f9cc072edea89e1c3b7e6d Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Thu, 14 Jan 2016 09:56:42 -0700 Subject: [PATCH] autobuild.sh: git diff when astyle errors detected. Signed-off-by: Jim Harris Change-Id: Ife57a75c8e5ea6f7cc43d12a73a487b82e1bcd65 --- scripts/check_format.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/check_format.sh b/scripts/check_format.sh index 9ac9485e3..8cd3c6009 100755 --- a/scripts/check_format.sh +++ b/scripts/check_format.sh @@ -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."