ci: color the diff for clang-format
authorEric Engestrom <eric@igalia.com>
Fri, 26 May 2023 17:22:02 +0000 (18:22 +0100)
committerMarge Bot <emma+marge@anholt.net>
Mon, 29 May 2023 11:57:08 +0000 (11:57 +0000)
Suggested-by: David Heidelberg <david.heidelberg@collabora.com>
Signed-off-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23269>

.gitlab-ci/test/gitlab-ci.yml

index 90e888d..ed28835 100644 (file)
@@ -45,7 +45,7 @@ clang-format:
     - clang-format-${LLVM_VERSION:?} --Werror -i
       src/**/asahi/**/*.{h,c,cpp}
       src/**/panfrost/**/*.{h,c,cpp}
-    - git diff --exit-code  # Fails if there are diffs
+    - git diff --color=always --exit-code  # Fails if there are diffs
 
 .test-gl:
   extends: