From 72a8d25ad7f939d5422c1aed3dbdc87d8d0b81c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Mon, 16 Jun 2025 10:38:13 +0200 Subject: [PATCH] Make changelog format display diff in unified format (#24631) --- scripts/check-changelog-formatting | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check-changelog-formatting b/scripts/check-changelog-formatting index 6c2dfbaa50..84ac3dae0f 100755 --- a/scripts/check-changelog-formatting +++ b/scripts/check-changelog-formatting @@ -7,7 +7,7 @@ output=$(node scripts/format-changelog.js distribution/changelog.txt) if [ $? -eq 0 ]; then echo "Script ran successfully. Running diff..." # Run diff on the original file and the output - diff --color=always -b <(echo "$output") distribution/changelog.txt + diff --color=always -b -U3 <(echo "$output") distribution/changelog.txt # If diff finds differences, exit with a non-zero status if [ $? -ne 0 ]; then echo "Differences found. Exiting with status 1."