| 95 | == Avoid "Drive-by Fixes" |
| 96 | |
| 97 | A **drive-by fix** occurs when a patch fixing for the original problem also contains a fix for an unrelated problem. Drive-by fixes should be avoided because they entangle unrelated fixes in the same patch or pull request. |
| 98 | |
| 99 | * The entire patch may be rejected or delayed because of a problem with one of the fixes. |
| 100 | * If the patch is committed as submitted, the commit history may be muddied. This is made worse if the commit messages never mention the drive-by fix. |
| 101 | |
| 102 | Instead, please submit separate patches or pull requests for each problem. That allows a library maintainer to apply non-controversial patches right away while trying to resolve issues with patches that turn out to be controversial or are outright rejected. |
| 103 | |