From 550cf5ebcc395dfa78bfc31ee2abc1550a9ed349 Mon Sep 17 00:00:00 2001 From: Charles Brunet Date: Wed, 30 Apr 2025 15:37:04 -0400 Subject: format: add --source-file-path argument for stdin Fixes #14539. Otherwise, .editorconfig is read from current working directory, and there is no way to know what file name to filter to choose the right section of editor config. --- docs/markdown/snippets/meson-format-stdin-editorconfig.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/markdown/snippets/meson-format-stdin-editorconfig.md (limited to 'docs/markdown/snippets') diff --git a/docs/markdown/snippets/meson-format-stdin-editorconfig.md b/docs/markdown/snippets/meson-format-stdin-editorconfig.md new file mode 100644 index 0000000..4a848b7 --- /dev/null +++ b/docs/markdown/snippets/meson-format-stdin-editorconfig.md @@ -0,0 +1,5 @@ +## meson format now has a --source-file-path argument when reading from stdin + +This argument is mandatory to mix stdin reading with the use of editor config. +It allows to know where to look for the .editorconfig, and to use the right +section of .editorconfig based on the parsed file name. -- cgit v1.1