$ cat posts/nit-local-pull-request-review.md~/scorpse/

nit brings pull request review back to local Git

Linked resource ↗https://github.com/Scorpse/nit

A pull request can be too large for the browser to show in full. That's where nit is useful. It fetches the base and head commits and asks local Git for the diff from their merge base. You can open a file on demand and keep reviewing even when the hosting service cuts off its web diff.

Review past the provider's diff limits

Each provider caps what its web diff can display. These are the file and line thresholds nit uses in its Too big view.

Provider Files in a diff Changed lines in a diff Per-file check
Bitbucket Cloud 200 8,000 2,000 changed lines
GitHub 300 20,000
GitLab (self-managed defaults) 1,000 50,000

The local review follows the same path on all three. Once Git can fetch the commits, nit computes the patch for each file from those commits. That keeps the change reviewable even when the provider truncates its own diff.

One inbox for the repositories you review

nit is a Rust desktop app built with egui. It brings Bitbucket Cloud, GitHub, and GitLab into one inbox, including self-managed GitLab instances. You pick which repositories to sync. The Too big view flags changes likely to hit the host's limits, and Stacked shows which pull requests build on each other so you can start with the base and work your way up.

nit's repository picker showing that only selected repositories are synced

nit demo inbox with nested pull requests and guidance on which one to review first

The demo shows a two-PR stack where the base still needs changes.

Read the diff, then send the review

Switch between unified and side-by-side diffs, jump between hunks with keyboard shortcuts, and mark files as viewed as you go.

nit demo split diff with the old Rust file on the left, the new file on the right, and inline threads

nit's review settings with Vim-style keys and the Unified and Split diff options

Inline comments stay on your machine as drafts until you submit them. That lets you finish reading the change and revise your feedback before anyone gets a notification. If nit can't match a comment to a valid line on the host, it stops before sending it.

nit's inline comment composer with a Save draft button and a local-save notice

The GitHub releases have builds for Windows, Linux, and macOS. You'll need Git 2.31 or later. Run nit --demo to try the interface without connecting an account.

Review and keyboard guide · How the local diff works