spr icon indicating copy to clipboard operation
spr copied to clipboard

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

Open adembo opened this issue 3 years ago • 1 comments

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.

adembo avatar Aug 30 '22 18:08 adembo

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.

sven-of-cord avatar Sep 14 '22 10:09 sven-of-cord