aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorCharles Brunet <charles.brunet@optelgroup.com>2025-04-30 15:37:04 -0400
committerJussi Pakkanen <jussi.pakkanen@mailbox.org>2025-08-01 16:28:09 +0300
commit550cf5ebcc395dfa78bfc31ee2abc1550a9ed349 (patch)
treeef328adc2e2697e54549c9302d516f8abb35aa10 /docs/markdown/snippets
parentb2a266b5d9fe8dca1cdace5fddeba618fc5cace0 (diff)
downloadmeson-550cf5ebcc395dfa78bfc31ee2abc1550a9ed349.zip
meson-550cf5ebcc395dfa78bfc31ee2abc1550a9ed349.tar.gz
meson-550cf5ebcc395dfa78bfc31ee2abc1550a9ed349.tar.bz2
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.
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/meson-format-stdin-editorconfig.md5
1 files changed, 5 insertions, 0 deletions
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.