Replies: 1 comment 7 replies
-
Part of the reason for that limitation is we are making the assumption that the stacked PR review workflow is too busted to support :). If there have been improvements to it, that'd be great! I can see this being made configurable since the ability to handle stacked PR reviews is contingent on the service being used. I have also considered taking the approach "if there is already a remote branch, push" so only the first push is an issue (though I'm unsure if I'd want to take
This would be quite easy. The command would look something like |
Beta Was this translation helpful? Give feedback.
-
Hey, I've got another idea that would ease my workflow.
At the moment,
git stack --push
will push all ready branches. Ignoring WIP commits (I don't use them at the moment), a branch will be considered ready if it is not stacked on top of another development branch.This is great when there are many branches on top of the protected branch directly, since
git stack --push
will be able to push all of them. It is not helping, however, if I want to push out a single stack of branches to create multiple PRs (master <- a <- b <- c) and allow reviewing all of them in parallel.I am often facing situations where I need to work on one feature and cannot branch out of the protected branch because I rely on the changes done previously that haven't been merged yet (they are earlier in the stack).
I would love to be able to tell
git stack --push
to push all branches on the current stack instead of pushing only the one that is directly on top of the protected branch.Possible solutions
I see the following possible solutions to this problem:
Allow manually marking a branch as ready with a new command. This branch will be pushed even if it contains WIP commits or is not on top of the protected branch directly.
Add configuration options for deciding when a branch is ready:
This would let users decide when they want their branches to be pushed.
Workaround
Thanks to
git stack
displaying a nice preview of the stacks, I can see which branches are on the current stack and dogit push origin [branch names here]
). It requires me to write the branch names manually, butgit stack
makes it easier than the genericgit branch
.One thing that would make it easier is a command that would list the branches on the current stack. Then, I could do:
git push origin $(git stack --current-stack-branches)
or something similar, depending on how newlines are handled.
That is a workaround in case the solution to the pushing problem is not so easy
Beta Was this translation helpful? Give feedback.
All reactions