[PATCH] use main as default branch instead of master
Derek Stevens
nilix at nilfm.cc
Sun Jan 9 17:22:48 UTC 2022
OK, no worries there. I'm fine leaving it alone as well.
Cheers,
Derek
------original message------
From: Jan Drögehoff <sentrycraft123 at gmail.com>
Date: Sun, Jan 09, 2022 at 05:53:22AM MST
>>Replacing one hard coded value with another is really not helpful.
>>Git itself solves this locally with init.defaultBranch in its config.
>>
>>If the corresponding option is unset you are helpfully told to choose
>>one. That is however not simply a matter of s/master/main/ but the
>>following:
>>
>>>Names commonly chosen instead of 'master' are 'main', 'trunk' and
>>>'development'.
>>As you can see, multiple "common" options.
>
>At the moment I think its better to simply stay with 'master' since
>that is what Git uses as the default at the moment
>
>even if multiple git hosting sites have decided to adopt main
>
>>There's work ongoing in git to make this more streamlined,
>>last example I know being
>>
>> commit e06c9e1df28e04bbf013840c6c50ce1be41b9583
>> Author: Thomas Weißschuh <thomas at t-8ch.de>
>> Date: Wed Nov 3 21:17:02 2021 +0100
>>
>> var: add GIT_DEFAULT_BRANCH variable.
>>
>>There's also similar efforts that would allow querying a remote.
>>
>>So I'd suggest you wait for upstream to figure it out first, rather than
>>blindly substituting the term which would break existing setup for no
>>real reason.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20220109/d6ba96ac/attachment.sig>
More information about the CGit
mailing list