spacedentist / spr

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

Add `--all` option to `spr diff` for operating on a stack of commits #77

Closed sven-of-cord closed 2 years ago

sven-of-cord commented 2 years ago

This commits adds an option for spr diff so that it iterates over all commits of a branch. This way you can create a set (or "stack") of commits and create or update pull requests for all of them in one go. This is very similar to calling git rebase --interactive $(git merge-base origin/master HEAD) and putting x spr diff after each commit.

Test Plan: in a test repository, create a branch and make multiple commits on it. Call spr diff --all. Later, amend a commit at the bottom, the middle or the top and do spr diff --all. Rebase onto a newer version of master, and do spr diff --all again.