(no title)
hooper
|
3 years ago
If your files are under version control, you already have a generic change detection mechanism that can give you a shorter list of changed files that need to be checked for formatting. For example, you can run code formatters in pre-commit hooks. Mercurial's "fix" extension rewrites commits using formatting fixes that can be focused on changed line ranges. Of course, the purpose of this --cache feature is still valid for other situations.
bobbylarrybobby|3 years ago
That said, formatters should be run in pre commit hooks anyway.
unknown|3 years ago
[deleted]
slavik81|3 years ago