{"version":"2.1.329","anchor":"review-prompt-diff-base-uses-originhead-in-some-cases","canonical_anchor":"review-prompt-diff-base-uses-originhead-in-some-cases","heading":"Code review can compare your branch against origin\/HEAD instead of its upstream","tier":"notice","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329\/e\/review-prompt-diff-base-uses-originhead-in-some-cases","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329","markdown":"### Code review can compare your branch against origin\/HEAD instead of its upstream\n\nThe review prompt now sometimes compares your work against origin\/HEAD rather than your branch's upstream when building its diff\n\n**Unclear.** It is not clear what decides whether the review compares against origin\/HEAD or the upstream.\n\n**What**\n\nWhen Claude Code starts a code review, its first step lists your changes with a git diff, which is a listing of what differs between two versions of your code. Before, it always compared your branch against its upstream, the remote branch it tracks. Now, in some cases, it compares against `origin\/HEAD` instead, using `git diff origin\/HEAD...HEAD`. Otherwise it keeps comparing against the upstream.\n\n**Why**\n\nThis can help reviews on branches that have no upstream set, where comparing against the upstream would not work.\n\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}