I have like 1.0, 1.1, 1.2 branches and i want every commit that goesw into 1.0 to go automatically to 1.1 and 1.2 and every commit to 1.1 to go automatically get committed to 1.2
is it possible to make all this in a single transaction and automatically? can someone tell me how please? (can it be with example please?)
Yes and no. You can make it atomic if you checkout the whole repository (or at least the branches folder). It won't be automatic though. You will have to apply the changes your self to the other branches. The different branches presumably have different code (you said they were version branches), so applying the same fix to different branches may require different edits. You can't (in general), always avoid human intervention.
I would challenge the idea of making everything look like 1 transaction. That will adversely impact the quality of your history. It will look like you made independant changed in many places. If you make the merging to other branches a separate transaction then the history will better reflect what you actually did (making one change and back porting it). Is there a reason you need to edit all branches in 1 Transaction?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With