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.
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 puttingx 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 dospr diff --all
. Rebase onto a newer version of master, and dospr diff --all
again.