8 ms·
Usually when introducing such a tool you do 1 commit that reformat the whole codebase to the new style and then automatically enforce it.
by dtech 6y ago
Usually when introducing such a tool you do 1 commit that reformat the whole codebase to the new style and then automatically enforce it.
- erichurkman 6y agoAnd in those large reformat commits, add a file like `.git-ignore-revs-file` that is checked in, so you can configure git to ignore that revision and pretend it never existed: [blame] ignoreRevsFile = ".git-ignore-revs-file" markIgnoredLines markUnblamableLines
- dtech 6y agoThat's an incredibly useful trick to know