spacedentist / spr

Submit pull requests for individual, amendable, rebaseable commits to GitHub
https://getcord.github.io/spr/
MIT License
377 stars 33 forks source link

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

Open adembo opened 1 year ago

adembo commented 1 year ago

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 commented 1 year ago

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.