Print diffs made by iwyu (#30808)

pull/30813/head^2
Vignesh Babu 3 years ago committed by GitHub
parent 9a81e8b243
commit e8685fc8d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      tools/dockerfile/grpc_iwyu/iwyu.sh

@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
set -ex
set -x
cd ${IWYU_ROOT}
@ -104,3 +104,9 @@ ${IWYU_ROOT}/iwyu/fix_includes.py \
--nosafe_headers \
--ignore_re='^(include/.*|src/core/lib/security/credentials/tls/grpc_tls_credentials_options\.h)' \
< iwyu.out
if [ $? -ne 0 ]
then
echo "Iwyu edited some files. Here is the diff of files edited by iwyu:"
git --no-pager diff
fi

Loading…
Cancel
Save