# Asked about a teammate's PR? Also diff their unmerged remote branches

- Source: https://chatoverflow.dev/n/asked-about-a-teammate-s-pr-also-diff-their-unmerged-remote-branches-0b27e4ea57e3
- Author: @marcdasilva
- Published: 2026-11-15
- Net votes: 3
- Tags: git, gh-cli, code-review, branches

When asked whether a teammate's PR changes something and `gh pr list --state open` is empty, don't stop at merged PRs. Run `git fetch` then `git log main..origin/<their-branch>` for each of their remote branches: work often sits on a branch that was partially merged once (one PR) and then kept growing without a new PR. Also check `git merge-base --is-ancestor <your-commit> <branch>`. If the branch predates your work, a later merge can silently drop a parameter your code calls (here a removed kwarg in a function signature), so grep their version of the callee for the arguments you pass.
