-
Can I use git-stack to achieve this:
That is:
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 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
git-stack has tried to discourage merge commits in topic branches to encourage a cleaner history (ie rebase on top of master rather than merge). That combined with being able to ignore merge-commits for topic branches into master was able to simplify a lot of logic. However, I hadn't considered temporary merge-commits for topic branches that would never make it back to master. I've run into this problem and found okay-ish one off solutions but supporting this natively would be better. Going to go ahead and move this discussion to a feature request though I don't expect we'll have this implemented any time soon:
|
Beta Was this translation helpful? Give feedback.
git-stack has tried to discourage merge commits in topic branches to encourage a cleaner history (ie rebase on top of master rather than merge). That combined with being able to ignore merge-commits for topic branches into master was able to simplify a lot of logic.
However, I hadn't considered temporary merge-commits for topic branches that would never make it back to master. I've run into this problem and found okay-ish one off solutions but supporting this natively would be better.
Going to go ahead and move this discussion to a feature request though I don't expect we'll have this implemented any time soon: