Clarification:
My intention was more like this:
hotfix (Branch A) --- PR into dev under review
/ V
1---2---3---4-----------------------dev (or main)
\
x---y---z feature (Branch B)
So eventually branches A and B get merged into dev (main) branch. But Branch A is not merged yet, so the hotfix is not final.
This Q is more about git methodology (#3):
- get the hotfix on-the-fly from Branch A into B and later update my code if the fix changes
- wait for the PR and merge to get final fix
- what are the other options?
Original Q below:
Branch A has a hot fix in PR under review. Branch B development is blocked by that fix (needed to continue development and/or compile).
As a background, the fix needed by branch B is in a different branch since it is independent fix not related specifically to feature in branch B but B depends on it.
The problem I can see is that if I cherry pick or merge the fix in branch A into branch B - I face potential issues down the road in case the review (and the fix) on branch A is rejected or changes are required. While branch B development assumed these changes as done and build on top of them.
One solution would be to stop development until the review on Branch A is complete and the fix merged into master. But that would delay development on branch B. Any other/better approach in this situation?