Hacker News new | ask | show | jobs
by bobbylarrybobby 1375 days 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.

1 comments

How do you decide what changes to restage? My experience has been that applying formatting in the pre-commit hook breaks `git add -p`.