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

spr diff to update an existing PR that's not HEAD #134

Open
adembo opened this issue Aug 30, 2022 · 1 comment
Open

spr diff to update an existing PR that's not HEAD #134

adembo opened this issue Aug 30, 2022 · 1 comment

Comments

@adembo
Copy link

adembo commented Aug 30, 2022

Currently, if I use spr diff to update an existing PR, that PR must either correspond to the commit at HEAD, or I must pass --all, which treats all of the commits on my branch as a stack of dependent PRs and updates all of them.

It would be nice to be able to specify a specific commit in the branch and update just that commit's PR. To work around this, I can reorder the commits and move the one whose PR I'd like to update to HEAD, but it'd be nice not to have to do that.

@sven-of-cord
Copy link
Contributor

Hi @adembo !

Your feature request is noted, but I won't be able to work on it so soon.

Anyway, there is another workaround. You can use git rebase --interactive and add a line x spr diff after the commit you want to update. This way you don't have to reorder anything.

See https://getcord.github.io/spr/user/stack.html for more details on that.

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

No branches or pull requests

2 participants