|
|
|
|
|
by lmm
609 days ago
|
|
> I don't think you can. You just rely on the the developer to only create compiling commits (if possible). Right. But there's a natural incentive to create compiling commits as you work (because when you're working on something you at least occasionally compile your code and run tests). There's much less incentive to go back and check after a rebase. > Also, code review might catch these. Pretty unlikely - usually people just review the overall diff, not the individual commits, and even if they do, the commits make sense visually whether they compile or not. > Then you fix the function name and move this change into the commit that started using this function (perhaps employing a fixup commit). If you are disciplined enough to notice and do this right, sure. But it's extra work that eats into you discipline budget. |
|