abhinav / git-spice

Manage stacked Git branches
https://abhinav.github.io/git-spice/
GNU General Public License v3.0
220 stars 11 forks source link

{branch, upstack} onto: restack even if no-op #321

Closed abhinav closed 2 months ago

abhinav commented 2 months ago

There may be an expectation from users that branch onto foo will always move the current branch and its commits on top of foo. Right now, if the current branch is already stacked on top of foo, but has diverged (and needs restacking), we'll no-op.

It is preferable that branch onto rebases the current commits on top of foo even foo is already the current branch's base. The same may be desirable for upstack onto.