(no title)
boolemancer | 1 year ago
I don't think I've ever found myself in a situation where I needed more granularity than the PR level when looking back through the history of a repo.
What are the situations where this is actually useful enough to make it worth the effort?
mathstuf|1 year ago
Some examples:
- https://gitlab.kitware.com/cmake/cmake/-/merge_requests/9486...
One commit to improve messages; another to add a test case that also uses these messages. Forcing separate CI runs for these dependent commits doesn't make sense, but they also don't belong in a single commit.
- https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8996...
Adds two test cases for a regression and then finally reverts the specific regression-exposing commit from https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8197... while keeping the still-good parts. If the 8197 merge had been squashed, one would have had to manually bisect the hunks to find out which one actually caused the problem.
boolemancer|1 year ago
I guess I struggle to see where reverting entire commits makes more sense than just deleting the offending code in a new commit.