96 points · by ingve · 1y ago · 258 comments
I work in the field of film mastering (with countless product names with the word “master” in it) and luckily no one got the ridiculous idea in their head that we need to change this lingo.
Show me a single person who has a valid reason for me not calling my branch “master” or my bedroom “the master”. I honestly think this sort of ridiculing word policing is why we lost this last damned election. And if you’re somehow proud that you’ve renamed your git branches, you’re very likely a contributor to that lost election.
I remember that Justice Antonin Scalia objected: “I hope we can continue calling it the golden disk. It has a certain Scheherazade quality that really adds a lot of interest to this case.”
<https://www.supremecourt.gov/oral_arguments/argument_transcr...>
If I put my tin foil hat on it feels like a psyops to make the left look like a bunch of morons.
Everything considered I invested an hour or more in total. I am pretty sure decades of engineering time and resources were invested over the years because some people didn't like a default globally used for decades.
It's master as in "master copy":
A "master copy" is an original version of a work from which other copies are made, serving as the definitive or controlling version
As far as software goes, things are similar. The process of "Mastering" is an exception.
As far as git branches go, I am fine with main. It has two advantages over master aside from any culturual questions:
1. main is more self-explanatory for beginners who don't know how "master" was/is used in tech.
2. it is shorter. While two letters don't make a huge difference, that is still a subtile advantage.
Whether these two points alone are enough to justify the needed work (which is probably not a lot to be honest), IDK.
In tech field there's lots of people living on the very fringes of society, hidden away behind keyboard.
Master! Master!
Every time I push to main I have in my head: ...mehTo be fair, the song is about control and the abuse of power.
I think the resisting probably wasted more time than anything else.
We used the occasion to ensure that there was no hardcoded naming in our IaC, internal tooling and CI/CD. It was surprinsingly easy, gave us a great excuse to do some much needed clean up and now everything can work with any branch used as the main one.
Was it extremely important? Probably not. Was it worth fighting against/having a stong opinion about? Probably not either.
Sometimes, it's easier to just go with the flow and try to turn things which seem meaningless into actual improvements. If it makes the people who think it's not meaningless feel better, well, even better. It surely didn't cost me much.
At most you could argue that you needed to run one additional command when pushing the initial commit during this transitional period where GitLab/GitHub had updated the name but Git itself has not. Therefore, now we're back to square one with less "waste" as you put it.
[init]
defaultBranch = master
I just think "master" is an awesome word. Master record. Mastering. It just sounds cool to me and I'm gonna keep using it.I also think "main" is a stupid word that doesn't say much about anything. I even hate "main" functions.
int main(int argc, char **argv);
I once wrote a liblinux library for Linux software development with freestading C. One of the things I did was replace the "main" function with a "liblinux_start" function.I had a few frustrated evenings of debugging when Github changed the default to main and my local scripts expected "master".
All fixed now, but still an annoyance. Don't think about it much anymore.
git config --global init.defaultBranch masterMost people do not care and will stick with the old default on old projects and use the new default on new projects. Occasionally, it stokes conversations around possible third options that are more descriptive like stable or development, but the norm is to just go with the default.
Going out of your way to set the default to the old name really reeks to me of slacktivism. People probably think that they're taking a stand, but in actual fact others will just assume that your repository is older or that you have an old configuration.
Glad it's going back to having a default and not asking.
Because Mercurial is using default as default, and if we have to resort to worse SCMs, let them behave like Mercurial anyway
For... some in the comment section, please recall the HN guideline: "Comments should get more thoughtful and substantive, not less, as a topic gets more divisive."
Does it need to be said that if the US had or has a problem, it's they alone who need to deal with it? Since when did the rest of world took upon itself to "solve" their problem? Did we all get green card or something?
I don't feel like this will stop here. What's the next word some people in some other country decided to declare offensive?
Shame.
Git took the branch name from Bitkeeper which did have "slave" branches and used a "master/slave" analogy. Git didn't also inherit the "slave branch" concept in that same way, but it did have that heritage accidentally imported when git lazily reused that branch name.
> Does it need to be said that if the US had or has a problem, it's they alone who need to deal with it?
Slavery/indentured servitude is a worldwide problem that still exists today in countries that are not the US. Even if you think this is an over-correction in relationship to the historic US Slave Trade specifically, that was a multinational effort involving the British Empire, the Dutch Empire, and many other Former Colonies beyond just the US' involvement. The US took advantage of the trade, but it neither invented the trade nor was the lone slave owning country involved in that trade, nor was it the last country in that trading group to end slavery trading in practice even if it was one of the last ones on paper.
If we believe we should remove allusions to negative things why are we ok with "kill", "orphan", "evict", "bash", "cut", "isolate" etc? What is special about that terrible concept that we should stop using the word even when not applied to people at all?
That's what is "special" about it, that it wasn't special. It wasn't chosen. It was just a stupid inherited default that didn't make sense when questioned.
It was never an intentional allusion to a negative thing, it was accidentally a negative thing causing real people some harm, and it was easier to fix than to justify why it was a negative thing in the first place.
[1] https://www.aljazeera.com/news/2018/1/26/slavery-in-libya-li...
Please IT people, tell me that this thing is absurd.
The cost is measured primarily in time. Experts in git/GitHub just experience a little annoyance (per repo). But for new comers (esp self-learners) the cost is much higher (takes the form of dysfunctional instructions, tutorials, readmes), and at the margin could cause someone to give up on a tutorial.
Cost should be weighed up against benefits i.e. that those hurt or upset by use of the word 'master' would no longer be. It's highly questionable whether the term master ever upset anyone (not simply those who were upset by the idea that someone else could be upset by the term's use).
A second-order cost is the precedent. There isn't a word in the English language which cannot be interpreted as malevolent given enough effort from the interpreter. Therefore it can be a better strategy to accept that there exist words with multiple meanings depending on context, and live with this language feature/imperfection, rather than impose costly changes on everyone to benefit a (possibly non-existent) few.
But to answer your question, it's unclear how "inclusive" this actually is. No person of color I've talked to about this (at least 3 that I can recall) has thought this was anything other than weird virtue signaling by admittedly mostly white social justice warriors. Their feelings on "master" terminology ranged from mild bemusement to "I REALLY DON'T GIVE A SHIT."
If the only people being "included" by this are people whom are themselves being uninclusive, even if for the right reasons... I question how "inclusive" this actually is.
That said, I'm definitely in the idgaf camp. My new repos are "main" because that's the default. Most of my old repos are still "master" because I never bothered to change it.
We fix things that are broken. That's progress.
I don't like euphemisms, or euphemistic language. And American English is loaded with euphemisms. Cause Americans have a lot of trouble dealing with reality. Americans have trouble facing the truth, so they invent the kind of a soft language to protest themselves from it, and it gets worse with every generation.
Video https://www.youtube.com/watch?v=vuEQixrBKCc or text form: https://www.lingq.com/en/learn-english-online/courses/87644/...First, I think it’s just a dangerous idea that people have to be so coddled and be ‘protected’ from seeing words that aren’t slurs and have either no contextual relationship or only very tenuous relationship to actually sensitive concepts (‘master’ has many meanings divorced from African slavery and git never had slave branches so plenty of other senses of the word apply). I feel like it’s going so far that anybody who needs this probably haven’t yet really achieved the resilience needed to operate in the real world.
And secondly, since none of the black developers I worked with actually cared about it, it feels like it’s not great to do something and think you’ve done your bit for racism prevention when you’ve done nothing that makes any real difference to it!
If your definition of "people" is "armchair political activists with nothing better to do with their lives", then yes.
> This change does hurt people. Have you never seen a newbie struggle with an out of date tutorial? There’s fifteen years of books, tutorials, videos, and other learning material out there that assumes the use of `master`. It takes about a decade for these things to die off in the clear-cut cases. However this is not even a clear-cut case, because Git defaults to `master` and GitHub defaults to `main`, so the confusion will last longer.
> Version control is a hard enough concept to grasp well at the best of times. And now there’s going to be a bunch of newbies – many of whom will be black – getting frustrated and confused because they are following the tutorials as best as they can and not getting the results they expect. On balance, there is probably more harm done to black developers with this change than leaving things as they were. Haven’t you ever seen a young developer lose confidence when they are trying the best they can to follow instructions and it’s just not working? Disliking the fact that this is being done to new developers thoughtlessly is not “pointless”.
> There’s also the matter that everybody I have seen advocating for this change has been white, and the responses I have seen from black developers generally ranges from “this is pointless” to “this is [performative / virtue signalling]” (insert appropriate term depending upon whether they are left or right wing). People start with the assumption that this is clearly the right thing to do for black developers, but people assuming that don’t seem to be actually listening to black developers about this, or at the very least, only listen to the ones that agree with them.
> This could have been done in a better way – coördinate with the main Git project around changing the default across the board, plan an update to as much documentation as possible, and make it happen in sync. But GitHub charged in unilaterally, seemingly with an overactive case of a white saviour complex, with people like you telling everybody ”this change hurts nobody”. This was done in an entirely thoughtless manner and does hurt people.
— https://www.reddit.com/r/git/comments/jtrx1k/announcement_po...
Beyond what I originally wrote, you also had ridiculousness like `git init` creating a branch called `main` if you install Git through Apple developer tools and `git init` creating a branch called `master` if you install Git through Homebrew; or getting a repo with `main` if you initialise the repo on GitHub and then clone it locally, but getting a repo with `master` if you initialise the repo locally then push to GitHub.
I don’t especially care what the default is, but I do care that GitHub didn’t seem to give a shit about the disruption they caused as long as they looked like they were performing racial justice of some kind (whilst having zero black people in leadership!). Why wasn’t the change centralised through the Git project so everybody could make the change together?
https://web.archive.org/web/20201001133529/https://github.co...
Fortunately, with this change, everything will return to being in sync.
Git's concept of a master branch was borrowed from BitKeeper which used master/slave terminology. https://github.com/bitkeeper-scm/bitkeeper/blob/master/doc/H...
Some people weren't evidently.
Do you even realize how ridiculous these nonsensical "arguments" sound?
The other git 3.0 changes are more consequential and worthy of discussion - changing from SHA-1 to SHA-256 for greater security and performance, changing the storage format for performance and introducing Rust.
Linus has a different view, he referred to the SHA-256 migration as "pointless churn": https://www.youtube.com/watch?v=sCr_gb8rdEI?t=11m
SHA-1 is not broken enough to be a serious issue for git. The migration to SHA-256 has been forced by on git by clueless morons, and it is, in this very special way, similar to the master-main rename.
Except for automations that happen to create new repositories.
I'll be keeping “master”, than you very much.
It applies equally to this than to systemd, wayland or Rust - but Rust is now trendy so people will bandwagon in their appreciation to look cool and in - to quote other topics regularly discussed on HN.
I fear that the most interesting thing about how these changes are received by the HN community is what it says about the HN community itself.
I personally found that additional detail to be very valuable, because it conveyed disdain without triggering justification for people like you to censor the comment completely.
It’s a rhetorical flourish pointing that in my opinion most people here are actually change averse, a trend which I personally notice more and more here.
I have no sensibilities. I am neither American nor interested in American politics. I am however deeply convinced that people having strong opinions about the names of branches have issues. An opinion I apply equally to people strongly advocating for the change and to people strongly against the change.
I get to feel like a ninja when I commit, the conceptual meaning is close to that of the previous term, and there's no historical baggage related to the US. Win-win-win?
I do see what you're saying, though, and will admit to some cheekiness on my end.
Their current state of "decentralization" is "the developer might still have a copy of the repo on his laptop".
TTH is universal for p2p, and yet developers choose another hashes, making their tools not ready for p2p.
My lovely Mercurial is unfortunately also not ready for p2p
That being said, this is a dumb reason to introduce inconsistency.
What does this mean, to compile git v3 I will need Rust ?
As for 'main' I always used that, I do not know how that happened since I use git the say way I used RCS ages ago.
That all being said - main is shorter than master and I would say most of us here, probably 95%, are "used to it" and it would actually be annoying to go back to master.
If this blocks you from "just want to do real work" maybe overthink your setup and adjust your pipelines?
The word "master" means someone/thing that has the capability of controlling things, like "Mastered", "Master Degree" etc.
But in most Git contexts, "master" is just "one of the breach that we hand picked to put our finest results in", that's not mastering anything, it just means "if you know what's best for you (or not), just use this one".
Another similar wording is in IDE hard drives. Remember the fun time where you can to setup jumpers before your secondary IDE hard drive would work? Yeah that secondary drive is called "slave". I'm still confused why the first drive must be called "master" since I never see it whipping any other drives to make them work harder or really doing anything that's remotely controlling.
The computer guys in the old times really have a weird taste in naming things.
I really don't care if it's main or master tbh. But is anyone actually offended?
[0] https://en.wikipedia.org/wiki/Master%E2%80%93slave_(technolo...
Where the master terminology comes in is that a certain version of ATA added bus mastering DMA from the drive. Maybe some harddisks had a jumper to disable or enable that
I don’t say this to justify sticking with the older terms, just to assert that they were actually used.
The word "master" stems from Latin, meaning "great" or "teacher". Just as teachers pass on knowledge to students, data is copied from the master.
Any slavery related connotations is insanely recent, and arguably manufactured specifically for the purpose of linguistic censorship. Historically, slave owners were referred to as... owners.
> Just as teachers pass on knowledge to students, data is copied from the master.
In the Git context, the "canonical" way to use git is that you merge/copy data _from_ other branches, such as `wip` or `dev`, _back to_ `master` or `main`, not the other way around.
All and all, it's done, OK? Don't like it? Hey, you can still use "master", just customize it. But you'll probably piss some people if you do, and then you have to dig out your dictionary again and again. Choice wisely.
However, "man" originally means "people" as in "mankind", or "human". It's only recently (c 1400) that it replaced "wer" ("wif" being the feminine noun) as meaning males (or mid 20th century for becoming an exclamation).
There are groups of black people that complained about the terminology, repeatedly [1]. So isn't it arrogant as a white dude to say, this thing hurts you, and we could easily change it, but fuck you we won't do it because we have always done it that other way?
Some easy no effort replacements:
- master-slave -> leader-follower
- blacklist -> denylist
- whitelist -> acceptlist
[1] https://en.wikipedia.org/wiki/Master%E2%80%93slave_(technolo...
I stick with "master" in my Git repos partly because it's an excellent filter: it lets me steer well away from anyone who pitches a fit over the word.
Frankly I don't really care either way, main is shorter and conveys the same meaning so by my metrics it's better. You can override the default to be whatever you want.