summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/Commands.md3
-rw-r--r--docs/markdown/snippets/meson-format-stdin-editorconfig.md5
2 files changed, 8 insertions, 0 deletions
diff --git a/docs/markdown/Commands.md b/docs/markdown/Commands.md
index 247f2d74e..09d8fd95f 100644
--- a/docs/markdown/Commands.md
+++ b/docs/markdown/Commands.md
@@ -493,6 +493,9 @@ or `--check-only` option).
input instead of reading it from a file. This cannot be used with `--recursive`
or `--inline` arguments.
+*Since 1.9.0* Using `-` as source file with `--editor-config` now requires
+`--source-file-path` argument to ensure consistent results.
+
#### Differences with `muon fmt`
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 000000000..4a848b73b
--- /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.