I have a somewhat complicated branching structure at work (at least for me). It is something like this:
Main | 1 | 2 | \ 3 \ Ver2 | 1 | \ 2 \ | ProjectA 3 | 1
There are 2 branches off of main. "Ver2" which has everyone's changes for the next version, and "ProjectA" which is my work.
My question is: Is there a way to create a config spec that knows what has been merged so I get:
- Anything from ProjectA that has not been merged
- If the LATEST from ProjectA has been merged to Ver2, then get the LATEST from Ver2 branch
- If there is not a ProjectA branch, get from Ver2
- If there is no Ver2, get from MAIN
For example, in the above case, if I merged version 1 from ProjectA to version 2 in Ver2 branch, then I would want to see version 3 on Ver2. However, if I have not yet merged those files, I would want version 1 from ProjectA in my view.