r/programming • u/NahroT • Jun 14 '20
GitHub will no longer use the term 'master' as default branch because of negative association
https://twitter.com/natfriedman/status/1271253144442253312
3.3k
Upvotes
r/programming • u/NahroT • Jun 14 '20
12
u/Izzyanut Jun 15 '20
The problem for some scripts is that it adds a lot of complexity.
For example, with Shields mentioned above, they can figure out default GitHub branch via the API, however some badges don't use the API for what they generate, so it would result in two data requests for the badge. Changing the assumed name will break all existing ones as well, which is another issue.
Then there's other services, that integrate with that code base (For example CI/CD) that don't have a way to request the default branch. So you may not have a way to tell what name to use.
Is this going to break everything and have no work arounds? No, but it is going to break a lot of projects that use Git, or that may not be maintained anymore.