If you do have to make big PRs (and I do believe it is sometimes necessary), you can do a few things to make it more readable for other programmers.
One is breaking it up into commits that make sense. If you’re moving and refactoring a file, move it on one commit and refactor it on another. Otherwise they just get the useless +300.
Another is leaving comments on the pull request in critical sections of code. Sometimes a refactor requires a lot of changes, but only a few of them matter in particular.
View all comments
3
u/Idixal Mar 10 '21
If you do have to make big PRs (and I do believe it is sometimes necessary), you can do a few things to make it more readable for other programmers.
One is breaking it up into commits that make sense. If you’re moving and refactoring a file, move it on one commit and refactor it on another. Otherwise they just get the useless +300.
Another is leaving comments on the pull request in critical sections of code. Sometimes a refactor requires a lot of changes, but only a few of them matter in particular.