Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't update stack for merge (ever) #441

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

efarrer
Copy link

@efarrer efarrer commented Jan 30, 2025

Do not run UpdatePullRequests when running the merge subcommand.

Suppose we have local commits: c1.
We do a git spr update and a PR is created for c1.
We then create local commits c2 & c3.

If we run git spr merge then the following happens.

  1. c1 got merged
  2. PRs are created for c2 and c3

The creation of PRs for c2 and c3 is both unexpected and undocumented.
The use of git spr merge only claims to "merge all the pull requests that are
mergeable in one shot".

If you want to only merge some of the PRs then git spr merge -c is still available. If you want to create PRs for c2 and c3 then git spr update can still be used.

Note: This change was inspired by de380f0.

  Do not run `UpdatePullRequests` when running the `merge` subcommand.

  Suppose we have local commits: `c1`.
  We do a git spr update and a PR is created for `c1`.
  We then create local commits `c2` & `c3`.

  If we run `git spr merge` then the following happens.

  1. `c1` got merged
  2. PRs are created for `c2` and `c3`

  The creation of PRs for `c2` and `c3` is both unexpected and undocumented.
  The use of `git spr merge` only claims to "merge all the pull requests that are
  mergeable in one shot".

  If you want to only merge some of the PRs then `git spr merge -c` is still available. If you want to create PRs for `c2` and `c3` then `git spr update` can still be used.

Note: This change was inspired by de380f0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant