From e0fc33dce2511c60c070064ffd86c746676dd302 Mon Sep 17 00:00:00 2001 From: Julianne Swinoga Date: Fri, 25 Apr 2025 11:22:52 -0400 Subject: Add --check-diff to meson format, to show what should be formatted --- docs/markdown/snippets/format-check-diff-option.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 docs/markdown/snippets/format-check-diff-option.md (limited to 'docs/markdown/snippets') diff --git a/docs/markdown/snippets/format-check-diff-option.md b/docs/markdown/snippets/format-check-diff-option.md new file mode 100644 index 000000000..efcab4f89 --- /dev/null +++ b/docs/markdown/snippets/format-check-diff-option.md @@ -0,0 +1,8 @@ +## `meson format` has a new `--check-diff` option + +When using `meson format --check-only` to verify formatting in CI, it would +previously silently exit with an error code if the code was not formatted +correctly. + +A new `--check-diff` option has been added which will instead print a diff of +the required changes and then exit with an error code. -- cgit v1.2.3