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/Commands.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs/markdown/Commands.md') 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` -- cgit v1.2.3