52 points · by exdsq · 6y ago · 154 comments
> (this probably means you shouldn't give much weight to my name preferences :) )
> I have wished many times I would have named them "main" (and "upstream") instead.
> Glad it's happenning @natfriedman
> Out of curiosity, why 'master'? What was it meant to convey? 'Master' as in 'original' or as in 'owner'? [0]
the reply:
> "master" as in e.g. "master recording". Perhaps you could say the original, but viewed from the production process perspective. [1]
[0] https://twitter.com/yawaramin/status/1272237126474752005
1) I came from an SVN background and only switched to Git because I started working at companies that used it. I still prefer SVN's aesthetics (and I wish I had more opportunities to use Mercurial), so I would much rather have 'main' or 'trunk' than 'master'.
2) At my company, my team uses the forking workflow (i.e. we do all our work in our own forks and then submit PRs to merge into the repo on the central server). Whenever I clone and fork a repo, I always nuke the 'origin' remote and create two new ones: my own fork, which I name after my AD username at my company, and the repo on the central server, which I name 'upstream'. That way, whenever I pull or push, I don't have to worry about mindlessly pushing or pulling 'origin' and accidentally touching the wrong repo: if I accidentally do so, I'll just get an error. So I am very, very much used to pulling from 'upstream'.
In particular, how is it different from what is called "mainline" in other VCS systems?
master
5b: an original from which copies can be made
especially : a master recording (such as a magnetic tape)
https://www.merriam-webster.com/dictionary/masterYou can branch from master the way you duplicate a master tape cassette, and the copy is not any worse or subordinate. In fact the whole point is that the branches are improvements.
The word does come up in database replicas, which are often called master/slave. I can see a clear case where that would be offensive.
Renaming the master branch might be throwing the baby out with the bathwater, but it's just easier to do that right now, and it's a small price to pay.
I believe it's the same usage as used in music recording, e.g.
> an original movie, recording, or document from which copies can be made.
This is actually a git concept not specific to GitHub.
Git uses origin and clone for repositories.
https://mail.gnome.org/archives/desktop-devel-list/2019-May/...
https://en.wikipedia.org/wiki/Master/slave_(technology)
It's used correctly in several of the cases listed here. Also, Jenkins uses (or used?) the term correctly.
- Master database tells the slaves what to write
- Master clock tells slave the time
- Master HDD controls the computer , so indirectly controls secondary -- though in this case slave HDD is more auxiliary rather than subordinate (this terminology isnt used anymore anyway)
In any case, master/slave terminology is historical and generally unproblematic, except apparently in the US, but so many words are problematic for someone somewhere that it's not wise to go down that road
But that's only an ad-hoc state of affairs; the only thing telling a database (in postgres, at least) that it's a replica is that it has a couple of settings telling it what to replicate from, and if you remove those and restart (or otherwise trigger a failover), the replica becomes the new master.
When people use it for hardware and software, there's a tacit understanding that the power relationship must be preserved.
These two are diametrically opposed.
Once that happens, they are no longer master and slave, of course.
For example, "primary/secondary" is slowly being adopted, but I find it very confusing because it can also mean two modules that perform the same function in parallel, but have a different priority for receiving input.
There are times when the slave drive communicates with the master (rather than the host controller), and the master controls things.
I'm the opposite of an expert, but here's one example according to a document (https://www.ele.uri.edu/courses/ele408/s2001/projects/roland...) that I found. From section 6.3.4:
During power on initialization or after RESET- is negated, DASP- shall be
asserted by Drive 1 within 400 msec to indicate that Drive 1 is present.
Drive 0 shall allow up to 450 msec for Drive 1 to assert DASP-. If Drive 1
is not present, Drive 0 may assert DASP- to drive an activity LED.
There are a few other sections like 6.3.13 (power-on diagnostics) and 6.3.16 (optional spindle sync) where it's pretty clear that Drive 1 follows Drive 0's lead.As other may have said, regardless of where it comes from, most of people now use it with the idea it means "master copy".
Soon:
* git itself is an offensive term and is renamed
* git blame too and is renamed
* grammar nazi can't correct my broken English anymore (goodwin point <- but how do Jewish people feel about this term ? )
* robot comes from the term robota which mean slaves, but it's okay because that's not English. If it's not offensive in the USA, that's fine i guess ?
And to finish, being of European background, master/slave for me is more linked to the greek cities period.
That said, the robot example may end up being interesting. How far can this particular language purication can be taken?
> How far can this particular language purication can be taken
I'm not anti-american (damn I have to put this kind of disclaimer), but it will go as far as these american-culture-centered people will think X or Y go against their view.
I think I understand more and more my Chinese friends who don't understand people who are trying to convince them "you're living in a dictatorship that's bad, see democracy is sooo good, why are you not listening to me", and they're just "I don't care, I don't understand why it's so much of an issue to you ?"
and yes for robot, the more I think about it, the more I don't understand why that's not the first word to have been reviewed, because the very idea, popular conception of a robot is the humanoid-metal-thing doing your chores, you can't do closer to the meaning of "slave" they don't want to hear about !
But, also to the best of my knowledge, it's not used in that manner in git itself; it's used as you explained it.
of or relating to a master from which copies are made: master film; master matrix; master record; master tape.
https://www.dictionary.com/browse/masterhttps://mail.gnome.org/archives/desktop-devel-list/2019-May/...
Here is the bitkeeper documentation[1] saying "we are then going to modify the file on both the master and slave repository and then merge the work."
Safe to say that's in the context of source control? If you meant to say "based on how git works..." then sure, that's a more accurate claim.
https://github.com/bitkeeper-scm/bitkeeper/blob/master/doc/H...
One piece I don't quite get - what does the branch name have to do with that? I always assumed "master" was from audio recording - i.e. a master record. Does that term also have dubious roots?
You are correct (according to the guy who picked master as the name) there https://twitter.com/xpasky/status/1271477451756056577
I think this whole thing has been blown out of context. Master/slave I get, that's a direct correlation to one guy telling everyone else what to do. But the master branch has no say on the other branches. There are no implied slaves or demands.
Going down this road implies any use of the word master in the negative
All that said, I hope they go with trunk. We talk about branches, pruning, and trees yet the "trunk" of the tree is the "master"
I do find it interesting that the movement broadly associated with BLM appears to have corporate sponsorship. But the pendulum is swinging way too hard and too fast.
Examples such as these are already being used to discredit BLM. Very reminiscent of OWS btw.
This is absurd and will break lots of docs
bye to --set-upstream origin master
(Or, for a quick and dirty fix, always redirect master to the main branch)
We will live.
Should we change the word master data? Git is also an offensive term. This is absurd.
"Gimp" is a better example of a bad name.
Yes, because there's no precedent for non-essential changes which break code. Maybe there's a good reason not to change the "master/slave" terminology but this sure as hell ain't it.
The issue with master/slave is way more than "it's offensive." By changing the language, people are taking explicit steps to move away from language rooted in racism. That's an important part of moving a culture away from normalization of oppression of minorities.
Github is changing the default branch name for new repos. New repos tend to have the most fresh eyes and agility. It shouldn't hurt too bad.
This is worth breaking the docs. They’ll be easy to fix.
I agree that teams should be making these decisions on their own. It's just a branch name.
[1] https://news.ycombinator.com/item?id=23484466 [2] https://github.com/openzfs/zfs/pull/10435
What git would do for this makes sense (git init -> branch main), but I'm not sure what Github functionality could change that'd make sense.
If it's not a big deal, change it.
If it is a big deal, change it.
Is that your intention?
Why can't he just be "I don't have an opinion" and just expressing his view on simply just "renaming vs quitting"?
I am probably not quitting Github just because it's convenient and I'm forced to use it often. But I think it's stupid to pressure someone to be a user of some corporation's proprietary SaaS product or else they're evil and bad. Give me a break. For example, I bought Pepsi today--should I be attacked because I'm not drinking Coca-Cola even though the CEO of Coca-Cola endorsed $CONSENSUS_WORLDVIEW.
We wouldn't even be having this discussion if the majority of individuals and software companies hosted their own git servers and web clients. If I were using the GPLv2-licensed git and self-hosting my own FOSS web client for git, I could change the default branch name to "main" without having to beg some corporation because I could edit and run the code.
On the other hand, fascinating to see the power of a modern angry mob in action.
Regardless of why it's called master, the term bothers some people quite a bit and the cost to use a different term is trivial.
There is a small cost to updating existing projects, but for new projects, the cost to use a different term is zero. In return you make your workplace less hostile to some of your co-workers (or potential co-workers). This should be an easy decision.
It seems to me that, unless it comes from the mouth of a black person, opinions as to the offensiveness of “master” are worse than worthless.
I would even say more, a non-american-black person. It's like forgetting that even though most of american-black people have been subject to white master/black slave slavery, most black people on earth are African black, where they have not been subject to white master/black slave slavery (they have been subject to white colonialism, but they've also been subject to black/black slavery)
> So it’s like, you know what you’re saying is not right. You’re just not trying.
https://madamenoire.com/1167067/working-while-black-my-cowor...
What you're saying is that all uses of the word master implies master/slave, which is what people are disagreeing with. In the recording industry, everyone uses the term master to denote the production copy of combined tracks. The tracks that make up a master are not slaves. In the same way that branches that make up a master vcs are not slaves.
In git parlance, master is where your builds come from for deployment. And branches are where you work on features. When branches are complete they merge back into master. How does this relate in any way to a master/slave definition? Based on the logic used, I would expect record studios to be moving away from using the word master as well.
On an aside, that’s a profoundly awful website. At one point, over 60% of my screen was filled with ads (top banner video ad, bottom banner image ad, inline text video ad).
Geez.
> There is a small cost to updating existing projects, but for new projects, the cost to use a different term is zero.
But if we want to talk about words used in workplaces that do imply control and ownership, can we discuss "subordinate"? Because that word is the most analogous word to "slave" that is used in everyday business.
"Making your bed will also reinforce the fact that little things in life matter. If you can't do the little things right, you will never do the big things right."
"If you want to change the world, start off by making your bed."
No one really thinks that renaming "master" branches is going to save the world, or really, do much of anything. I'm going to do it because it's a little thing that takes less than a day. After that I'll move on to something else.
> The broken windows theory is a criminological theory that states that visible signs of crime, anti-social behavior, and civil disorder create an urban environment that encourages further crime and disorder, including serious crimes. The theory suggests that policing methods that target minor crimes such as vandalism, public drinking, and fare evasion help to create an atmosphere of order and lawfulness, thereby preventing more serious crimes.
Perhaps there are two interpretations of this. 1. That it's a meaningless first step or 2. That it is a small but meaningful first step. To those who see (1), I think this is akin to heavily policing a neighborhood and arresting people for talking too loudly.
> The M&Ms provision was included in Van Halen’s contracts not as an act of caprice, but because it served a practical purpose: to provide a simple way of determining whether the technical specifications of the contract had been thoroughly read and complied with.
Or is it arguing the canary in the coal mine (a sentinel species which is affected by too-high carbon monoxide levels before humans are, giving miners a warning signal)?
Personally, I don't think the BWT analogy is the right one given how BWT is so strongly coupled to funding the police - even in its original non-zero tolerance version - and the well-known racism in its real-world application in NYC. You can see from your quote the lack of consideration of non-policing methods to target vandalism, public drinking and fare evasion.
Eg, pay for more sanitation and cleaning crews to fix vandalism, change the laws to keep cops from being the subsidized security force for abandoned buildings, restore public health services to help the homeless (one I've read about is to create supervised "flop house", that is, very cheap and basic housing where addicts and drunks have safer place to drink), and support mechanisms like raised minimum wages, increased unionization, or basic income which help people have the money to pay for the subway fare and an increased desire to maintain the current social system.