| ▲ | hamburglar 4 days ago | ||||||||||||||||||||||
If I have a feature branch, and as part of that feature change, I did a simple refactor of something, I definitely want that committed as two separate commits in the PR, because you can look at the changes in isolation and it makes them a LOT easier to follow. And if you prefer, you can look at the diff of the entire PR in one single view. I don’t see the downside. And please do not come back with “you shouldn’t do a refactor as part of a feature change.” We don’t need to add bureaucracy to avoid a problem caused by failure to understand the power of good version control. | |||||||||||||||||||||||
| ▲ | normie3000 4 days ago | parent [-] | ||||||||||||||||||||||
This bureaucracy has very low overhead. Squash-merge the feature and then the refactor, or the refactor then the feature. Also makes reviewing each quicker. | |||||||||||||||||||||||
| |||||||||||||||||||||||