summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Vincent <jesse@fsck.com>2026-08-13 00:26:43 +0000
committerJesse Vincent <jesse@fsck.com>2026-08-13 00:26:43 +0000
commit2a500febcc10a07f24df8b72452156a16f277600 (patch)
tree4e8ece27744c31cf9c9357f8b767df365de44545
parent777ceb5e12b6845f25e339ef1f4bef4e32b58d10 (diff)
fix(requesting-code-review): anchor the multi-commit BASE_SHA alternative to the merge basefix/review-base-sha-merge-base
The '# or origin/main' alternative fed a moving ref into the reviewer's two-dot diff: once origin/main advances past the branch point, main's new files appear as phantom deletions the reviewer can't distinguish from real ones. Reproduced during triage (2026-08-12): a scratch repo with main advanced one commit shows 'main-new.txt | 1 -' in the branch's diff. git merge-base origin/main HEAD anchors the range to the branch point, matching how sdd's review-package already computes BASE. Reported in #2118 (wan-huiyan). Fixes #2118.
-rw-r--r--skills/requesting-code-review/SKILL.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/skills/requesting-code-review/SKILL.md b/skills/requesting-code-review/SKILL.md
index fa4f2f9..6d995da 100644
--- a/skills/requesting-code-review/SKILL.md
+++ b/skills/requesting-code-review/SKILL.md
@@ -25,7 +25,7 @@ Dispatch a code reviewer subagent to catch issues before they cascade. The revie
**1. Get git SHAs:**
```bash
-BASE_SHA=$(git rev-parse HEAD~1) # or origin/main
+BASE_SHA=$(git rev-parse HEAD~1) # or: git merge-base origin/main HEAD
HEAD_SHA=$(git rev-parse HEAD)
```