4 ms·
I disagree on making `git commit -a` the default behavior for commits in git. It discourages making nice, atomic commits.
by wfarr 16y ago
I disagree on making `git commit -a` the default behavior for commits in git. It discourages making nice, atomic commits.
- danh 16y agoI agree that two-stage commits is a great feature to have. But there are downsides to making it the default. Obviously, it trips beginners up. And it encourages committing stuff that may never have coexisted in the working tree - and thus have never been tested together.
- wfarr 16y agoI can't think of any reason for someone to commit changes that hadn't been tested in the working tree or at least ran through the test suite before doing so.