|
|
|
|
|
by BurningFrog
1768 days ago
|
|
With normal review cycle times, this would slow things very much. Optimizing your development practices for being able to revert single commits seems very wrong to me. If you produce so many bugs that this is important, I'd focus on making fewer bugs. At my current job I can't remember us reverting a commit in the three years I've been here. We probably work in very different environments, and your views may be the pragmatic ones in your environment. |
|
I don't think it does. Ultimately you need to review everything so if you ensure that each commit is logically coherent it actually makes reviews easier.
Otherwise, in my experience, things can get quite messy and the history very difficult to follow.
It's also impossible to predict when or if you'll need to revert a commit. If you follow good practices and have discipline then you make your life much easier if things go wrong or you need to cherry-pick something, which is quite common with bug fixes if you have several branches (e.g. one branch per release).