git - Make unable to branch merge [Lock for merge?] -
i wondering, if it's possible make branches unable merge? example: have master
, brancha
, branchb
. i'm working on branch branchb
completetely different other branches. how make branch unable merge others?
my bad, if it's duplicate question.
if branches different need separate repository, or fork if you're using github , branch in question @ least similar other.
a rather ugly workaround hook. there's no pre-merge hook there prepare-commit-msg hook (link answer pre-merge hooks) receives argument give you'd need write script checks name of branch. it'd ugly. i'm not 100% sure work. realistically, should go first option. if 2 branches can never merged should in separate repositories.
Comments
Post a Comment