From a8f433c5482813f949bfdae0fff52cf0fabf3136 Mon Sep 17 00:00:00 2001 From: Anton Kolesnyk Date: Mon, 1 Jul 2024 15:51:16 -0700 Subject: [PATCH] If formatting fails in CI, print detailed diff --- eng/pipelines/templates/jobs/ci.tests.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/eng/pipelines/templates/jobs/ci.tests.yml b/eng/pipelines/templates/jobs/ci.tests.yml index 3d5b2eb4a5..6525abacce 100644 --- a/eng/pipelines/templates/jobs/ci.tests.yml +++ b/eng/pipelines/templates/jobs/ci.tests.yml @@ -143,6 +143,11 @@ jobs: echo "" echo "List of files not formatted correctly:" git status | grep modified | awk '{print $2}' + echo "" + echo "" + echo "--- Differences (patch file): ---" + git diff + echo "--- (You can apply the diff above locally using the 'git apply --ignore-space-change ' command) ---" exit 1 fi