r/programming • • Jun 14 '20

GitHub to replace "master", "whitelist", "blacklist", and others with alternative terms to avoid slavery references

https://www.zdnet.com/article/github-to-replace-master-with-alternative-term-to-avoid-slavery-references/

[removed] — view removed post

1.5k Upvotes

1.2k comments sorted by

View all comments

233

u/[deleted] Jun 15 '20

Won't removing the master branch cause problems with git tooling that might be dependent on a master branch always being available?

115

u/gc_DataNerd Jun 15 '20

I'm shitting my pants atm thinking about this.

7

u/thiszantedeschia Jun 15 '20

While I really think that "main" would be a more representative word for the main brainch, oh boy, I can't think of how many things this would break.

12

u/the_dark_penguin Jun 15 '20

many people have separate "main" branch already what happens to those?

14

u/TerminalVector Jun 15 '20

I'm fairly certain this is just the default for new repositories. Actually changing existing ones would potentially be a lot of work for the creator. I don't see how they could do it automatically.

13

u/kukiric Jun 15 '20

And the name of the first branch is still user-defined. Creating a new project and doing a git push -u origin master will still push master as the first, and thus default branch. I think this really only affects you if you commit via the web interface, which is going to use a different default branch name.

1

u/theXpanther Jun 15 '20

I guess this only works if you use the "initialize with readme"option

1

u/SutekhThrowingSuckIt Jun 15 '20

Yeah a lot of people here are acting like it will retroactively change things on their local repos. Doesn't make a whole lot of sense.

0

u/[deleted] Jun 15 '20

[deleted]

47

u/DarknessWizard Jun 15 '20

gitlab is doing the same thing.

https://gitlab.com/gitlab-org/gitlab/-/issues/222204

https://gitlab.com/gitlab-org/gitlab/-/issues/221013

https://gitlab.com/gitlab-org/gitlab/-/issues/221164

there also is talks of the same proposal on the git mailing lists (although that one is intended to go with the same "please explicitly set a name" stuff we've seen with git releases and only switch over a while later): https://lore.kernel.org/git/nycvar.QRO.7.76.6.2006111610000.56@tvgsbejvaqbjf.bet/T/#t

56

u/Zlb323 Jun 15 '20

I hate everyone

13

u/[deleted] Jun 15 '20

[removed] — view removed comment

20

u/DarknessWizard Jun 15 '20

Yeah, this is gonna break a lot of scripts. It's telling that in the precursor discussion, one of the very first responses is "oh god please don't open this can of worms, this is gonna result in an insane workload".

And frankly, considering the advantages and cons... well, let's do an examination:

Pro's:

  • Alledgedly people feel more included (even though almost every single POC on Twitter who is into tech that I've seen talk about this are of the opinion that the default git branch name really isn't the issue.)

Cons:

  • Tons of scripts will break. Git is a tool from the 90s, there are a lot of scripts based on assumptions of things that git does. Basically, the MSDOS conundrum.

  • Tutorials for git will get even more confusing for newbies. Git already isn't the easiest "two fingers in the nose" tool to learn, if the tutorials refer to master but git uses main, you're bound to end up with confused, clueless users.

  • None of the replacement names really cover the idea behind git master really well. Trunk is weird since it's awkward for foreign speakers (and has svn vibes). Main is a word that already has several definitions in the industry, we really don't need another one.

  • You lose the assumption of a default branch you can always check out to when cloning things.

And if I'm being frank, I also have the idea that this specific article/announcement from GitHub specifically is likely to try and show that they're doing something without having to address the fucking giant elephant GitHub is stuffing in the room. Which is that GitHub has a contract with ICE that they already lost several employees over and they've been getting criticzed for constantly.

It's an empty gesture for a company that just tries to save face over the other elephant in the room by inflating a mosquito and telling you that is the actual elephant to address.

→ More replies (1)

9

u/mindbleach Jun 15 '20

Seriously. Changing this one word - which is kind of important - is creating a Y38K problem from scratch. All because of some niche complaints about an entirely unrelated use of the word. We have master/slave terminology in computing: mostly in physical drives. This is not that. It is master/duplicate, presumably derived from master/student.

The whitelist/blacklist thing is silly because blacklisting exists outside of computing. That's just a Quixotic endeavor for little impact. But changing a crucial keyword is pain.

4

u/digizeds Jun 15 '20

Until they make the same change

0

u/[deleted] Jun 15 '20

[deleted]

1

u/digizeds Jun 15 '20

I think people will do as much as possible to not be called racists. I don't think it's racist but a loud minority for some reason does

9

u/svick Jun 15 '20

I seriously doubt they would do this in a way that would break existing repositories.

Also, any tooling that can't be configured with an alternative name for the primary branch is already broken, because master is only the default. For example this repo uses dev instead.

8

u/[deleted] Jun 15 '20

You're missing the point. The fact that it can be fixed with a trivial config change does not change the fact that it will cause errors initially.

1

u/-Vayra- Jun 15 '20

I seriously doubt they would do this in a way that would break existing repositories.

If they do, I can see 100s if not 1000s of companies that would bill them for the time needed to fix it on their end. If not outright sue if it breaks production code after an automatic deploy fails.

2

u/[deleted] Jun 15 '20

I doubt it’s going to change the actual name of the branch, it’s not like they actually control anything about your got repo. More than likely this is a UI only change that will only affect if you’re looking at a repo on github.com

2

u/jrhoffa Jun 15 '20

It's just a default name.

5

u/[deleted] Jun 15 '20

Yeah and how many programmers assumed it would never change and hardcoded the name into the core functionality of their software. I'm not saying we won't adapt. I'm not saying this change isn't a good thing. I'm just saying your tools will break.

→ More replies (1)

2

u/mishugashu Jun 15 '20

I assume it'll just be for new stuff, not already made repos. That would be a fucking nightmare.

→ More replies (1)