2 ms·
There's quite a few advantages to having a single commit being the unit of change: - reverts are significantly easier - bisect will work because the code is e
by packetlost 1y ago
There's quite a few advantages to having a single commit being the unit of change:
- reverts are significantly easier
- bisect will work because the code is expected to code/run at every commit
- rebase becomes easier in the common case
- the transport does not matter, at all. Fully anonymous contributions are possible
- commit messages are easier to write because the changes are smaller and more focused
Several commits could encompass changes necessary to make a particular feature work (ie. patchset) but because each commit is self contained they can be reviewed and tested individually (in order, usually) instead of a one big diff. It's easier on the reviewer, though there's likely a bit more overhead.