From 38424714b1d3c7e35fb0cb2de548338885a98c14 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 25 Aug 2021 17:05:16 +0200 Subject: Print colored diffs when there are formatting failures in CI This makes diffs more readable in CI logs. --- misc/scripts/file_format.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc/scripts/file_format.sh') diff --git a/misc/scripts/file_format.sh b/misc/scripts/file_format.sh index 795431cd28..0b49b175f2 100755 --- a/misc/scripts/file_format.sh +++ b/misc/scripts/file_format.sh @@ -42,7 +42,7 @@ while IFS= read -rd '' f; do perl -i -ple 's/\s*$//g' "$f" done -git diff > patch.patch +git diff --color > patch.patch # If no patch has been generated all is OK, clean up, and exit. if [ ! -s patch.patch ] ; then -- cgit v1.2.3