Preventing merges from one branch into others
- From
- Tim Chase <git@tim.thechases.com>
- Date
- Feb 7, 2013, 19:14 UTC
- Message-ID
- <20130207131440.716c1022@bigbox.christie.dr>
[tried IRC to no avail] I've been trying to find a way to prevent myself from merging a client-specific branch back into my dev/master branches. Is there an easy/straightforward way to do this (perhaps via a hook)? I didn't see any sort of "pre-merge" hook script. Visualized:
A -> B -> C [dev]
\
-> Q -> R -> S [customer-specific]and I want to ensure that changes Q/R/S never find their way back into dev.
So I was hoping some sort of "hey, you're an idiot for trying to merge $CUSTOMER_BRANCH back into dev/master" warning. :-)
-tkc