atproto git client atgc.codes

feat(pr): let resubmit --move a pull to another branch #1447

targeting main from claude/resubmit-move
Merged opened by and assigned to orbit-nodachi.test.pds.did.bot
targeting main from claude/resubmit-move

pr resubmit records the checked-out branch and repo as the pull's new source. It refuses with exit 2 when either differs from the newest version's source, naming the branch to check out instead.

--move turns that refusal into a deliberate choice: the new branch is published, the version records it as the pull's source, and one moved: line names the old and new source. The push leases the new branch's tracking ref rather than the old version's head, so a branch something else moved is refused instead of overwritten.

This pull includes #1441's refusal commit, which --move builds on, so it should land after #1441.

before and after

🤖 Generated with Claude Code

Commits 1

feat(pr): let resubmit --move a pull to another branch