Replies: 1 comment
-
|
Thanks so much for sharing, I also think this is useful and it's actually quite straightforward to implement. There already is a notion of creating the workspace merge commit by merging not the tip of the stack, but any commit further down. gitbutler/crates/but-core/src/ref_metadata.rs Lines 465 to 473 in 82ec107 This would have the desired effect of merging a different tree while officially claiming that the tip is merged. The GUI would need special support for visualising this correctly. CC @OliverJAsh . |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Stacked branches are in theory a really useful way for me to work on a large piece of work that needs to be broken into several PRs.
However, the way we merge PR chains in our organisation is bottom up, i.e. each one is merged separately into
masterrather than top-down where each is merged down into a final large PR that can be merged intomaster. This means we can lower the risk of rollback by testing each individual change one at a time, and make it easier to identify the cause of issues compared to trying to unpick a massive PR.However, this creates a need to be able to test each branch independently of anything further up the chain. If I have
|- Feature 4
|- Feature 3
|- Feature 2
|- Feature 1
And I need to make a change to Feature 2, I want to be able to unapply just Features 3 and 4, as this will ensure that the correct functionality isn't predicated on something higher up that won't be merged until later.
What would be great is if there was a function in the Workspace, under the menu for each branch, which would 'unapply' any branches stacked above that branch and grey them out in Gitbutler.
|-
Feature 4|-
Feature 3|- Feature 2
|- Feature 1
Could be called 'Unapply branches above' or some such thing. You could then have a button on that branch to reapply the ones above it.
As it stands the workaround is basically not to use GitButler if my change is sufficiently complex that I know it will need a stacked PR chain, or to make my changes in GitButler and then checkout the branch outside of GB to test it,
Beta Was this translation helpful? Give feedback.
All reactions