Code review



Summary:

When it comes to git branches, every single log message and diff is individually valuable. However, sometimes log messages do not accurately describe the contents of the diff which leads to misinformation and noise. While many people strive for neat collections of easy-to-understand and review commits, this can be difficult in practice. One solution is to use squashed commits, but this can still be challenging when reviewing large pull requests.Despite this, there is nothing that makes a single large commit harder to review than multiple small ones. In fact, a large commit may be easier to review since it contains the same amount of code or less, and you can easily search the entire change during the review process. There are many things that can make code review easier, such as utilizing the ability to search through the changes.It's worth noting that inside Google, the code review process follows a one-commit-one-review system.


Updated on: 2023-06-07T17:27:41.345150+00:00