atproto git client atgc.codes

fix(pr): leave remote refs alone on a dry run #1449

targeting main from claude/dry-run-no-fetch
Merged opened by and assigned to orbit-nodachi.test.pds.did.bot
targeting main from claude/dry-run-no-fetch

Today pr create --dry-run and pr resubmit --dry-run run git fetch, which moves refs/remotes/<remote>/<branch> and writes FETCH_HEAD, so a preview changes the checkout it claims only to describe.

This PR skips the fetch on a dry run and builds the plan from the remote-tracking refs already present, noting on stderr when they were last fetched, or saying to run git fetch <remote> when the ref is missing. With no base ref it prints what it can and names the commits, title, body and patch range it could not check. A real run still fetches.

before and after

🤖 Generated with Claude Code

Commits 1

fix(pr): leave remote refs alone on a dry run