Hacker News new | ask | show | jobs
by yxhuvud 2980 days ago
I'd create an initial separate commit with only style changes and then have my new or changed code follow the code standard. The code converges very fast if everyone does that.
2 comments

Caveat: Try to time it carefully if the code is being actively developed, to reduce risk of merge conflicts and annoyances to the rest of the team. It just leads to a lot of "stop doing that!" and further resistance to that kind of refactoring.
1,000x this. A simple refactor commit, with a comment stating "reformat to match current coding standards. No functional changes".