by hnruss · 8y ago · 0 comments
"test && git commit -am working"
This seems like a recipe for a useless commit history.
Unlike character-by-character OT sync, though, each synced Git commit does represent a working codebase. You could theoretically retroactively grab huge numbers of these commits and squash them down and describe the result—though multiple independent things might have happened in them that would be very difficult to untangle, given that, in this workflow, it's entirely possible that two separate people are working collaboratively on two separate features, in the same file, at the same time.
This greatly improves the utility of the commit history, at the expense of losing the actual commit history as work progressed:
- FeatureA should ensure valid user session
- fix test
- missing semicolon
- null check
- fix incompatibility with FeatureB
- shit broke the build
- address PR comments