| ▲ | Izkata 4 days ago | |||||||||||||
> or code formatting changes (heh heh heh heh) which make it extremely difficult to see what you changed... One of the "individual commits saved me" cases was when one of these introduced a bug. They tried to cut the number of lines in half by moving conditions around, not intending to make any functional changes, but didn't account for a rare edge case. It was in a company-shared library and we didn't find it until upgrading it on one of our products a year or two after the change. | ||||||||||||||
| ▲ | rectang 4 days ago | parent [-] | |||||||||||||
One of the reasons I don't like a policy of "every commit must pass CI" is that I prefer to perform verbatim file moves in a dedicated commit (which inevitably breaks CI) with no logical changes at all, then modify code as necessary to accommodate the move in a separate commit. It makes review and debugging much easier. | ||||||||||||||
| ||||||||||||||