In fact, many projects forbid pushing to master entirely and only allow reviewed merging to the master. Then, every time the master changes, a new release of the software is made (either manually or automatically with CI/CD)
Comment on If "Master/Slave" terminology in computing sounds bad now, why not change it to "Dom/Sub"?
SpaceCadet@feddit.nl 2 months agoIs it not the main working branch
No it is not. On large distributed projects for which git was designed, you typically don’t directly work on main/master but you create a working branch to do your changes, and when they are ready you merge them to main/master.
There are many types of git workflows, but main/master usually contains the code that is deployed to production or the latest stable release and not some work in progress.
When you start a new project, do you open a new branch or create a whole new repository?
You have to define “project” for that.
- Is your project a change to existing code -> new branch, merge to main/master when done
- Is your project something new that stands entirely on its own? -> new repository
PlexSheep@infosec.pub 2 months ago
aodhsishaj@lemmy.world 2 months ago
Ah we develop the same way. There’s testing then staging then prod is final review and is then finally merged to Main after documentation. Main branch is protected and merges are gated by review. There’s no need for master terminology there.
SpaceCadet@feddit.nl 2 months ago
Nobody said there is a need, you could call it foo or bar and it would still work. It just that master more accurately describes what it is. Main for example does not describe a derivative relationship, master does.
Also, master in this context is totally unrelated to slavery so I could also just as easily say that there was no need to replace the existing terminology either. It doesn’t solve any real world problems of historic or currently existing slavery, and it doesn’t make anyone’s life better. The only reasons why it was done were appeasement and virtue signalling.
aodhsishaj@lemmy.world 2 months ago
Sure, so if there’s no need for any certain terminology outside of an agreed upon definition what does it matter if it’s called master or main or unicorn farts? Why care about Master at all?
SpaceCadet@feddit.nl 2 months ago
I’ve already explained all my reasons, but I’ll reiterate. To summarize I basically have five main issues with it
The change was done in response to attempts at langauge policing and bullying by a vocal and militant minority. Giving into it is a form of appeasement.
The change retroactively modifies a terminology that was already agreed upon. Like, if git sprung into existence today, not many people would have an issue with it if they would call it main or trunk or primary from the get go. But that’s not what happened. Git was released in 2005 and it used master terminology. As a consequence, many existing repositories also use master. Now when someone is working with branches, like doing merges or pull requests, they suddenly have to remember: oh in this repository it is main, but in that repository it is still master. Or they have go out of their way to modify decade old repositories, potentially breaking all kinds of behind the scenes CICD stuff. Or they have to go out of their way to revert the default on all systems that they’re working on back to master. In any case, this change is a source of errors and wasted effort for zero net good.
It does no good in the real world other than making do-gooders feel good about themselves, and giving a capitalist entity some PR to appear more progressive than they are. We all still have masters, existing slaves are not freed, no historical wrongs of slavery or inequality are righted.
It’s a misguided change in this case because the word master in this context doesn’t even have a relationship to slavery. Just like a master degree you may hold, or a master key or a master recording of your favorite album have no bearing on slavery. Note that there are no “slave” branches in git.
Finally, in the case of git, master is simply more accurate than main because it carries a nuance (derivativeness) that main does not.
Omniraptor@lemm.ee 2 months ago
Wait huge? Shouldn’t Prod be the last place any changes go ?
aodhsishaj@lemmy.world 2 months ago
AA5B@lemmy.world 2 months ago
Seems like what we use “RC” for (Release Candidate)