Before Opening Anything, Check What's Actually In It
git log --oneline master..feature/dessert-menu
git diff master...feature/dessert-menu --stat
A real PR should never surprise its reviewer — knowing exactly what commits and what files are included, before asking anyone to review them, is the same real diligence a "Files changed" tab exists to support.
The Real, Original PR Mechanism
git request-pull master ../recipes-origin.git feature/dessert-menu
This generates the real, complete text any PR description fundamentally is: the commit this branch started from, where to fetch the real changes, a genuine diffstat, and every actual commit grouped by its real author.
What GitHub's Button Actually Does
GitHub's "Open pull request" button is a real, convenient web wrapper around exactly this same information — the same commit range, the same diffstat, the same author list — just rendered in a browser instead of a terminal. Knowing the real mechanism underneath means never being lost when working with git anywhere a GitHub-style web UI is not available.
This offline sandbox genuinely has no GitHub, no network, no web UI — confirmed directly, nothing to fake around here. But a PR is not a GitHub invention: long before GitHub existed, git shipped its own real mechanism for exactly this — "here is what I changed, here is where to pull it from, please review and merge it."
git request-pull generates that real, complete summary directly from actual history: the commit range, a genuine diffstat, and every real commit grouped by its actual author. This is, literally, what a "PR description" is — GitHub's button just wraps this same real information in a web page.
git request-pull
Generates a real, complete textual pull request: the commit the branch diverged from, the real remote and branch to fetch from, a genuine diffstat, and every actual commit grouped by author. Confirmed directly in this lab: this is git's own original mechanism for exactly what a PR is, predating GitHub itself.
Three-dot diff (A...B)
Compares B against its real merge-base with A, showing only what B actually adds — not changes that happened independently on A. Confirmed directly in this lab: this is the real comparison a PR's "Files changed" view is built on.
Takeaways
- git request-pull is git's own, original real PR mechanism — predating GitHub by years
- It generates a real, complete description directly from actual history: commit range, diffstat, per-author commit list
- A three-dot diff (A...B) shows only what B genuinely adds, the same real comparison a "Files changed" tab is built on
- GitHub's PR button is a real, convenient web wrapper around this exact same underlying information