Code Review Can Be Better
TigerBeetle shelved git-review, an experiment that stored code review as a single commit of inline marked comments on top of the PR branch, edited by author and reviewer and reverted once all threads were resolved. Reviewing locally with inline comments worked very well, but applying requested changes caused merge conflicts with review comments at hunk boundaries, and frequent force-pushes added friction. The mismatch between strict hash-chained history for code and the looser merging review needs pushed the tool past a small-script budget. Git's possible adoption of Gerrit-style Change-Ids may enable per-commit interdiff review, and related tools such as Fossil, git-appraise, prr and flirt are listed.
Related posts
- WebKit on GitHub!
WebKit easyNoviceWebKit froze its Subversion tree on June 23rd and moved source control to git hosted on GitHub, citing git's distributed collaboration model, its author/committer model, cheap branch and revert operations, and the fact that most contributors already worked from git-svn mirrors. GitHub was chosen for its developer community and an API that made pre- and post-commit automation easy to build. Because git hashes are unordered, which complicates bisection under WebKit's zero-tolerance performance regression policy, the project uses "commit identifiers": the ancestor count on main (git rev-list --count) plus a branch-relative count for branches. These identifiers are supported by the git-webkit script and the commits.webkit.org translation service.
- Better tools made Copilot code review worse. Here’s how we actually improved it.
GitHub Engineering mediumAdeptSwapping Copilot code review's bespoke exploration tools for the shared Copilot CLI tools (grep, glob, view) initially raised review cost and reduced useful comments, because the tool instructions encouraged broad, repo-browsing behavior instead of diff-anchored investigation. Benchmark traces exposed the browsing loop, and rewriting tool guidance around a reviewer's workflow (form questions from the diff, narrow with grep/glob, batch discovery, view only known ranges, recover from failed searches with simpler queries or glob) cut average review cost about 20% in production without a quality regression. The same focused instructions did not help the interactive CLI, so tool prompting must match the product's job.
- On the Importance of Pull Request Discipline
Shopify Engineering mediumAdeptWell-structured pull requests make code review easier and leave a self-documenting history that speeds debugging and rollbacks. The guide walks through each part of a GitHub PR: titles that state scope and affected models, summaries that explain what changed and why, including alternatives considered, plus commit messages, comments, labels and linked issues. For commits it recommends that each one pass CI on its own, follow a logical order, keep refactors separate from business logic, fold linter and review fixes in with fixup/autosquash, and include tests with the code they cover. It also favors smaller PRs and accepts skipping the rules during emergencies, provided the history is cleaned up afterwards.
- Git in the Shell
Replit mediumAdeptReplit Repls now connect their Git command-line tools to a linked GitHub account, so clone, fetch and push work against GitHub repos, and commit messages and interactive rebase plans open in the Workspace editor. The integration sets GIT_EDITOR to a script that calls a new per-Repl local REST API, which opens a file and can block until the tab closes. Authentication goes through GIT_ASKPASS: it answers Git's username prompt with "token" and the password prompt with the GitHub token fetched from the local API, after a once-per-session consent dialog. The feature is not recommended with Multiplayer because collaborators could reach the token.
- Turn one giant AI-generated pull request to a reviewable stack
GitHub Engineering mediumAdeptStacked pull requests split a large, agent-generated feature diff into a chain of small, dependency-ordered PRs that are each scoped to one concern. A worked example adds product search to a shopping assistant as four layers: catalog data, search API, chat wiring, and grounded UI. Each layer is built by a scoped custom agent and reviewed by a different owner using the gh-stack CLI (init, add, push, submit, rebase, sync). The recommended review flow is to read top-down for context and review bottom-up. Fixes to a lower layer are propagated with gh stack sync. Prefer local gh stack rebase over the web Rebase button, because the server-side rebase resets the committer and produces unsigned commits that can break branch protection.