4 ms·
In between commits, the `--cache` option is still helpful because it means you can avoid running prettier on a file whose contents have changed since the last c
by bobbylarrybobby 4y ago
In between commits, the `--cache` option is still helpful because it means you can avoid running prettier on a file whose contents have changed since the last commit but not since it was last saved.
That said, formatters should be run in pre commit hooks anyway.
- deleted 4y ago[deleted]
- slavik81 4y agoHow do you decide what changes to restage? My experience has been that applying formatting in the pre-commit hook breaks `git add -p`.