Open
Description
Discussed in #223
Originally posted by 1tgr March 24, 2022
Can I use git-stack to achieve this:
* bf02041 - (4 seconds ago) wip - implement feature 3
* 7709143 - (14 seconds ago) Merge branches 'feature-1' and 'feature-2' into feature-3
|\
| * 02ce6b4 - (40 seconds ago) wip - implement feature 2
* | c96a6fb - (49 seconds ago) wip - implement feature 1
|/
* 9595644 - (78 seconds ago) Initial commit (master)
That is:
- Two independent feature branches based on master
- A third feature branch based on the first two
The idea is that the feature-1 and feature-2 branches don't rely on one another and will be reviewed and merged to master separately, and feature-2 shouldn't contain feature-1's commit or vice versa. But feature-3 does rely on both, and feature-3 should not be merged to master until both feature-1 and feature-2 have been merged.
It looks like git-stack understands the merge commit (7709143 in the example above), but git stack --rebase
appears to force a linear history with feature-2 stacked on top of feature-1.