Repository navigation
Commit d87643b
committed
fix(pm): count the human-merge size rename-aware, as GitHub does
dispatch-gates changedLinesFromGit and check-governed-merges --branch and
sweep summed git --numstat with --no-renames, so a moved file read as a
whole delete plus a whole add (PR #30594: 4324 lines against GitHub's 1806).
The size reads now pass -M; the --name-only gate-derivation lists keep
--no-renames so a rename still names both paths. Self-tests pin a renamed
file counting +1/-1 over one file in both scripts.
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cy385N3ELe3hf8qLkd1 parent 05a30e6 commit d87643b
3 files changed
Lines changed: 157 additions & 24 deletions
0 commit comments