summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJesse Vincent <jesse@fsck.com>2026-08-13 00:29:29 +0000
committerJesse Vincent <jesse@fsck.com>2026-08-13 00:29:29 +0000
commit99f9f00869e3e774e9abe9a29ccfccb8957ec5da (patch)
tree2c6ff34693ccaaad18330627ba16be7d66be34bf /docs
parent777ceb5e12b6845f25e339ef1f4bef4e32b58d10 (diff)
fix(sdd): reject empty or non-descendant BASE..HEAD ranges in review-packagefix/review-package-range-guards
When an SDD implementer commits to the wrong branch (#2050), the BASE..HEAD range handed to review-package is either empty or not rooted at BASE. Both cases previously produced a review package silently — an empty one lets the reviewer approve "clean" work that isn't there. Add two mechanical guards after BASE/HEAD validation, exiting 3 (vs 2 for usage errors) so callers can distinguish range problems: - git merge-base --is-ancestor BASE HEAD, else "HEAD is not a descendant of BASE" - git rev-list --count BASE..HEAD > 0, else "empty commit range" Guard shape credits the analysis in closed PR #2082 by @stantheman0128. Fixes #2050
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions