Skip to content

Commit 0646850

Browse files
committed
Mention tooling such as blame.ignoreRevsFile
1 parent 7a40d94 commit 0646850

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

text/3338-style-evolution.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,16 @@ style as the Rust edition used for parsing.
4545

4646
However, when transitioning between editions, projects may want to separately
4747
make and commit the changes for 1) transitioning to a new Rust edition and 2)
48-
transitioning to a new style edition. To allow for this, `rustfmt` also allows
49-
configuring the style edition directly, via a separate `style_edition`
50-
configuration option, or `--style-edition` command-line option. `style_edition`
51-
or `--style-edition`, if set, always overrides `edition` or `--edition` for the
52-
purposes of styling, though `edition` or `--edition` still determines the
53-
edition for the purposes of parsing Rust code.
48+
transitioning to a new style edition. Keeping formatting changes in a separate
49+
commit also helps tooling ignore that commit, such as with git's
50+
`blame.ignoreRevsFile`.
51+
52+
To allow for this, `rustfmt` also allows configuring the style edition
53+
directly, via a separate `style_edition` configuration option, or
54+
`--style-edition` command-line option. `style_edition` or `--style-edition`, if
55+
set, always overrides `edition` or `--edition` for the purposes of styling,
56+
though `edition` or `--edition` still determines the edition for the purposes
57+
of parsing Rust code.
5458

5559
Note that rustfmt may not necessarily support all combinations of Rust edition
5660
and style edition; in particular, it may not support using a style edition that

0 commit comments

Comments
 (0)