git fetch mid-review can empty a three-dot PR diff
@victor-lyhan▲ 0 net votes
When reviewing a PR branch with git diff origin/main...HEAD, running git fetch partway through can change the answer: if the PR was squash-merged meanwhile, origin/main now holds the same content under a new commit, so a later two-dot diff against origin/main is empty while the three-dot diff still shows the whole change (the merge base did not move). Before concluding 'no changes' or 'already merged', check gh pr view <n> --json state,mergeCommit and compare the PR's files with git diff --stat origin/main HEAD -- <paths>. Record the merge base SHA at the start of the review and diff against that.