[VOTE] Switch 'master' to 'main' branch for repositories

Rich Brown richb.hanover at gmail.com
Sun Mar 5 16:38:06 PST 2023


+1 I do think that the change to the name "main" is a good thing.

> On Mar 5, 2023, at 9:50 AM, Sungbo Eo <mans0n at gorani.run> wrote:
> 
> On 2023-02-27 16:05, Felix Fietkau wrote:
>> Hi all,
>> 
>> More and more projects are switching their repositories to use the
>> 'main' branch instead of the 'master' branch. This also includes many
>> Linux upstream trees as well. Some trees are even removing their
>> 'master' branches already.
>> 
>> I think this is becoming more and more mainstream and expected of
>> projects, so we should do the same.
>> 
>> I would like to propose the following:
>> 
>> 1. Change the git server side to automatically update the 'master'
>> branch, whenever an update is pushed to 'main'.
>> It's important to have a long transition period in order to avoid
>> breaking downstream users' workflows.
>> 
>> 2. Change the git server side to refuse a push to 'master' if 'main'
>> exists. This avoid accidental branch divergence
>> 
>> 3. Developers simply change their git configs to always push to 'main'
>> 
>> Once this change is well established, we can look into removing
>> 'master', but we should definitely take our time with that.
>> 
>> - Felix
> 
> Neutral on this.
> 
> Though I don't feel the strong urge to rename the main branch of an
> existing repository, I'm okay with it if there are already many examples
> of successful conversion and if we are ready to deal with additional
> (un)expected chores.
> 
> Thanks Paul for the links, those were quite helpful for me. :)
> 
> Best regards,
> Sungbo
> 
> _______________________________________________
> openwrt-adm mailing list
> openwrt-adm at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-adm




More information about the openwrt-adm mailing list