3 ms·
What's the benefit of pretending everything happened in one discrete commit? I'm not sure I see the value, only information destroyed
by cerved 5y ago
What's the benefit of pretending everything happened in one discrete commit? I'm not sure I see the value, only information destroyed
- digisign 5y agoThere's much less value in commits where the tests are broken.
- cerved 5y agonot every single commit needs to pass every single test besides CI only needs to test the merge commit
- yencabulator 5y agoIf every commit passes tests, tools like `git bisect` are much more useful.
- cerved 5y agohow do you mean?
- yencabulator 5y agoIf you find a new bug, git bisect can very quickly find which commit introduced the bug, and understanding the origin makes fixing the bug easier. That mechanism does not work nearly as well if some commits are not in a usable state.
- cerved 5y agobut if that is the case why not just git bisect skip $(git merge-base main branch) ? to me, squashing the tree to simplify an edge case seems needlessly radical