• rwhitisissle@lemmy.ml
    link
    fedilink
    arrow-up
    66
    arrow-down
    1
    ·
    edit-2
    10 months ago

    Instead of either, it’s good to have a more descriptive primary branch:

    git checkout -b dontwritetothisbranchdirectlyyougottaopenaprfirstandhaveitreviewedandapprovedandthenpasstheautomatictests

    • kaida@feddit.de
      link
      fedilink
      arrow-up
      58
      arrow-down
      1
      ·
      10 months ago

      I‘m anti-slavery but that’s just not the reason I use main as default branch

    • MeanEYE@lemmy.world
      link
      fedilink
      arrow-up
      3
      arrow-down
      2
      ·
      9 months ago

      I can’t wait for asshats to start calling for gender fluid connectors. What’s that, male 3.5mm connector, did you just assume my connectors identity?

  • Empathy [he/him]@beehaw.org
    link
    fedilink
    arrow-up
    50
    arrow-down
    3
    ·
    9 months ago

    I use main because, although I never heard of anybody actually getting offended by master, it costs me nothing to use main instead. Also it looks prettier and seems to be the new convention ¯\_(ツ)_/¯

  • Ohi@lemmy.world
    link
    fedilink
    arrow-up
    50
    arrow-down
    7
    ·
    9 months ago

    No disrespect, but asking everyone to remove words from the English language because they may offend a small group of oversensitive people is one of the most frustrating social initiatives of our time. “Master” makes sense for the job and unless we’re also putting “Slave” and “Cotton” on the dictionary chopping block, the arguement will always seem arbitrary to me.

      • Urist@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        9 months ago

        It is much easier for lots of western progressives (i.e. moderates if that label was used properly) to fix a naming scheme than reevaluate the exploitative structures on which their lives are based.

    • Jorgelino@lemmy.ml
      link
      fedilink
      arrow-up
      14
      arrow-down
      3
      ·
      9 months ago

      unless we’re also putting “Slave” and “Cotton” on the dictionary chopping block

      Aren’t we though? At least when it comes to tech, Master-Slave terminology has been largely deprecated in favor of other terms.

    • Doc Avid Mornington@midwest.social
      link
      fedilink
      English
      arrow-up
      13
      arrow-down
      6
      ·
      9 months ago

      The only reason you think “master” makes sense is because you’re used to it. It’s actually quite a weird connection to make, if you aren’t used to it. “Main” is much more straight forward. And nobody is really demanding people stop using “master”, so far as I am aware, it’s just that people are making that choice themselves.

      • corship@feddit.de
        link
        fedilink
        arrow-up
        8
        ·
        edit-2
        9 months ago

        I vote for naming this branch “mommy”, since all other branches are it’s offspring, and related to it.

      • derpgon@programming.dev
        link
        fedilink
        arrow-up
        3
        arrow-down
        1
        ·
        9 months ago

        And nobody is really demanding people stop using “master”, so far as I am aware

        GitHub, GitLab, and git itself, are all using main as the default name of the default branch, by default.

        • lurker2718@lemmings.world
          link
          fedilink
          arrow-up
          3
          arrow-down
          1
          ·
          9 months ago

          Yes that is the point. They made the choice to change their default. You can still make the choice to name your branches, especially the main one, as you like. Setting it for a project is less work than complaining about it.

    • MeanEYE@lemmy.world
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      edit-2
      9 months ago

      More to the point it refers to relation between elements and not the political correctness of the act. Just how the terminology is used in books, but reading one doesn’t imply you are a racist or condone slavery.

  • mlg@lemmy.world
    link
    fedilink
    English
    arrow-up
    33
    arrow-down
    1
    ·
    9 months ago

    Master sounded so much cooler man

    Like yeah I’m a master of linux

    Literally no connotation to slavery when the word slave isn’t even used in the git terminology

  • alefunguju@lemmy.one
    link
    fedilink
    arrow-up
    37
    arrow-down
    5
    ·
    10 months ago

    I use main as my default branch because it’s what Git has been defaulting to for some time now

  • Hellfire103@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    37
    arrow-down
    5
    ·
    10 months ago

    I use master because I’m nostalgic. If it matters that much, though, I’ll start using trunk (like we used to back in the days of SVN).

  • vojel@discuss.tchncs.de
    link
    fedilink
    arrow-up
    38
    arrow-down
    7
    ·
    9 months ago

    Oh I don’t give a single fuck about the discussion, it’s technology, not politics. I am more upset that my company has some legacy repositories with master and the newer ones with a main branch. So everytime I want to create a MR with push options via command line I need to change main to master or visa versa.

    • MeanEYE@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      9 months ago

      This is a huge pain in the ass for us as well. We have some automation with development environment and deployment of certain scripts. We had to redo a good chunk of them to first test whether there’s main or master. And it took us a long time to find stragglers that weren’t as frequently updated but would suddenly break deploymend after minor changes.

  • Omega_Haxors@lemmy.ml
    link
    fedilink
    English
    arrow-up
    26
    arrow-down
    13
    ·
    edit-2
    9 months ago

    It speaks to the deep rooted whiteness of the industry that such a common-sense change is treated as completely bullshit even to this day.

    • derpgon@programming.dev
      link
      fedilink
      arrow-up
      9
      arrow-down
      2
      ·
      9 months ago

      It speaks to deep rooted butthurtness of USA boomers and constant need to enforce their stupid ass rules to others. It’s not racist, neither are blacklist or whitelist.

      • lurker2718@lemmings.world
        link
        fedilink
        arrow-up
        8
        arrow-down
        2
        ·
        9 months ago

        Even ignoring the question of racism, they are still stupid names.

        Imagine teaching a child about this and it asks: Why is white allowed and black not? The only answer is, because it is like this for a long time. If we name them allowlist and denylist, it is obvious to all English speaking people. Shouldn’t we strive for descriptive names in programming?

        However, if you use names whitelist an blacklist, you need to make the implicit connection white-positive black-negative. Yes obviously this does not make you racist if you do this in programming. But is it good?

        • derpgon@programming.dev
          link
          fedilink
          arrow-up
          5
          ·
          edit-2
          9 months ago

          White - light. Black - no light. White knight - good. Black knight - bad.

          These two colors have a meaning. It has fuck all to do with skin color. And if you do, then you are helping to enable “useless racism” in the form of “this offends the black community”, while literally nobody gives a fuck.

          Its a useless change in the sake of changing things. Everyone is tech eants the superstar and wants to say “Hey, you are using X (not Twitter in this case)! I made that, noice.”.

          If someone decided to change it next week to primary, would you be for or against it?

          • bane_killgrind@lemmy.ml
            link
            fedilink
            English
            arrow-up
            4
            ·
            9 months ago

            Why is a filled checkbox positive and an empty checkbox negative

            Sounds like white true black false is not universal

          • lurker2718@lemmings.world
            link
            fedilink
            arrow-up
            1
            ·
            9 months ago

            Yes colors have a meaning. However, they change ober time and culture. So why not use the word which describes exactly what we mean?

            I agree, nowadays blacklist/whitelist has practically nothing to do with skin color. However i do think it is weird to use the same words for describing the appearance of people and good/bad.

            Well i would be indifferent to the renaming to primary, because it doesn’t really matter to me what they call their branches, as long as it is descriptive. primary also conveys the meaning. I would probably continue using main/dev because i see no reason to change.
            I am not someone who says “You should change this!”. I just say, think of it, there are some reasons to change and the only reason to keep it, os that we did it always like this. I think there are reasons for selecting better words. And I am only annoyed by people who are outraged by things others do, which does not really affects them negatively. I get it that someone wants to continue using blacklist, master, etc. and I am ok with that.

        • Omega_Haxors@lemmy.ml
          link
          fedilink
          English
          arrow-up
          3
          arrow-down
          3
          ·
          edit-2
          9 months ago

          AL/BL. See, not stupid at all. You just don’t want to admit you’re deeply racist and that’s your motivation for caring a non-zero shit about this.

          Programmers will literally uproot their entire language of choice if it’s required it but can’t replace one definition? Give me a fucking break.

          • bane_killgrind@lemmy.ml
            link
            fedilink
            English
            arrow-up
            2
            ·
            9 months ago

            Taking this stuff personally is just intellectual laziness. The phrase “Allowlist” isn’t about that guy, and if he can’t grok that it isn’t he needs to work on himself.

      • Auzy@beehaw.org
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        edit-2
        9 months ago

        I really don’t see the problem with switching the names.

        You seem to be the only one in this entire discussion getting triggered about being more inclusive honestly. Nobody else cares…

        But yeah, as others have said, the changes make sense regardless, and if it’s more inclusive, I have no problem with that. It’s not a big deal for me, but it might be for other people.

        If you’re offended by the change, you can still use master as your main repo.

  • MeanEYE@lemmy.world
    link
    fedilink
    arrow-up
    19
    arrow-down
    6
    ·
    edit-2
    9 months ago

    Oh, how upset I was by that decision. I still call out GitHub online every now and then thanking them for solving slavery by messing up my deployment scripts and development environments.

    • ShustOne@lemmy.one
      link
      fedilink
      arrow-up
      5
      ·
      9 months ago

      I use GitHub and all my older repos have a master branch with no forced change. When did they force a change? I think you are mistaken.

      • MeanEYE@lemmy.world
        link
        fedilink
        arrow-up
        4
        arrow-down
        1
        ·
        9 months ago

        Had to refresh my memory, it’s been a while. They didn’t change branch on existing projects, but they did change it on new repos to main by default. Our tools indeed created repositories and configured everything for the developer automatically. However GitHub’s policy meant that you had to either change the tools to detect whether they are working with old repo or new, or go to every new project after automatic configuration fails, configure default branch and then rerun the tool. Same thing then happened to few of our tools that were used for CI.

        All in all they made more work for us for no reason other than be smug about it and it changed exactly nothing.

        • EarMaster@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          9 months ago

          So your tooling was at fault for assuming something that has always been declared a convention not a rule. It is like assuming we will never reach the year 2000 and there only storing the last to digits for the year…

        • ShustOne@lemmy.one
          link
          fedilink
          arrow-up
          1
          ·
          9 months ago

          I think this is an excuse. Using the CLI you can easily create and specify the default branch. It’s also not difficult to check the branch name.

      • MeanEYE@lemmy.world
        link
        fedilink
        arrow-up
        2
        arrow-down
        2
        ·
        9 months ago

        They forced the change. If I wanted otherwise, I had to go and specify per project that master was the default branch, and there were many of those. And whole “insanely fragile” is just nonsense or are you trying to tell me people have conditions and scripts that detects what’s the default branch and use that instead of assuming default name that hasn’t changed for 15 years would remain default?

        Whether you like Linus or not, whatever is released to users stops being a bug and becomes a feature. Not breaking user-space is a must. Instead they achieved nothing and caused a lot of unnecessary work to a lot of developers.

  • ShortN0te@lemmy.ml
    link
    fedilink
    arrow-up
    22
    arrow-down
    9
    ·
    10 months ago

    I find it funny how many ppl complained about it when it came up. Now it is the default on github and other code forges. And now one cares anymore if it is master or main.

        • fl42v@lemmy.ml
          link
          fedilink
          arrow-up
          6
          arrow-down
          1
          ·
          9 months ago

          Do you really have to, tho? One can keep using masters, move them to mains, or even symlink one to another so that everyone is comfortable with whatever they’re used to. Seems like a non-issue to me 🤷

          • wewbull@feddit.uk
            link
            fedilink
            English
            arrow-up
            3
            ·
            9 months ago

            We’ve ended up with a 50:50 chance of what any repo is doing. All depends on when the repo was created (old ones are all master) and if the creator tried to preserve consistency or not (yes: master, no: took the default of main).

            It’s annoying and pointless.

            • fl42v@lemmy.ml
              link
              fedilink
              arrow-up
              3
              ·
              9 months ago

              I mean smth like git symbolic-ref refs/heads/master refs/heads/main. Not sure if it’s a bad practice or smth, tho

          • MeanEYE@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            9 months ago

            For a while, yes, you had to. Every new repo would be main while old ones remained master. Tools that default to a specific branch aside now you had to remember and check which branch you are merging into every time.

          • AggressivelyPassive@feddit.de
            link
            fedilink
            arrow-up
            1
            arrow-down
            2
            ·
            9 months ago

            It’s an issue, because many tools default to a certain branch, and people do too. So each build pipeline has to be changed, each dev has to check for each repo he’s working on, whether it’s using main or master, etc, etc.

            Just think about what hell would break loose, if Microsoft would be forced to rename C: to something else because someone was reminded of the "C word ".

      • Deebster@programming.dev
        link
        fedilink
        arrow-up
        12
        arrow-down
        2
        ·
        9 months ago

        On the plus side, forcing people to support alternative branch names surely has led to better software support for a core Git feature.

        • MeanEYE@lemmy.world
          link
          fedilink
          arrow-up
          3
          arrow-down
          2
          ·
          9 months ago

          That’s like forcing people to have different color shoe laces and calling it good practice. In reality it changed nothing but forced a lot of people to work on solving issues with their scripts and automation tools for the sake of change instead of spending that time on writing actual code and fixing bugs.

      • fl42v@lemmy.ml
        link
        fedilink
        arrow-up
        3
        arrow-down
        1
        ·
        9 months ago

        Sb got offended for no reason, then companies decided to get public approval points out of it; nothing new or notable. Seriously, tf is the point of overanalyzing it like there’s nothing better to do?

      • MeanEYE@lemmy.world
        link
        fedilink
        arrow-up
        3
        arrow-down
        3
        ·
        9 months ago

        This, sooo much this! People don’t realize that this change created a lot of unnecessary work to a lot of developers for no other reason than PR or to act smug about it. They solved slavery problem by renaming master to main equally well as they solved homophobia and transphobia by allowing people to specify pronouns on their profiles. Who the hell cares if you identify as tree sap. However many do care if your code sucks or doesn’t follow coding style.

      • lugal@lemmy.ml
        link
        fedilink
        arrow-up
        11
        arrow-down
        40
        ·
        edit-2
        10 months ago

        You sound like a slave owner, ngl

        I am not pro slavery but I will not free my chattel slaves. People just break with this tradition for extremely dubious reasons.

        Listen to yourself!

        Edit: I was thinking about putting “/s” at the end but thought it was obvious enough. I was wrong

          • lugal@lemmy.ml
            link
            fedilink
            arrow-up
            3
            arrow-down
            7
            ·
            10 months ago

            Why do I keep getting this comment? Maybe I should call myself Poe in the future

            • Deebster@programming.dev
              link
              fedilink
              arrow-up
              6
              ·
              9 months ago

              I think on the Fediverse (or just Lemmy?) I’ve seen more people who’d post your comment non-ironically. Or maybe they’re not serious either (but they’d have to be really committed to the bit).

              • lugal@lemmy.ml
                link
                fedilink
                arrow-up
                2
                ·
                9 months ago

                I had a conversation recently where someone said they weren’t serious after several levels of comments that were downvoted into oblivion. I try to make myself understood in the second (or third) level of comments or, as in this case, in an edit

              • lugal@lemmy.ml
                link
                fedilink
                arrow-up
                1
                ·
                9 months ago

                I guess I once again forgot the “/s”. I’m not going to call me “Poe” at any point of time /s

        • cmnybo@discuss.tchncs.de
          link
          fedilink
          English
          arrow-up
          8
          ·
          9 months ago

          The latest version from kernel.org still uses master. It’s certainly possible for distro maintainers to change it on the versions they package though.

          • Farid@startrek.website
            link
            fedilink
            arrow-up
            6
            ·
            9 months ago

            Yeah, seems like I’m wrong. I looked up the docs on git-scm.com and it says that the default branch name is “currently master, but this is subject to change in the future”. Maybe GitHub threw me off.

  • IsoSpandy@lemm.ee
    link
    fedilink
    arrow-up
    10
    ·
    9 months ago

    I use master because when I do ‘git init .’ I get a master branch and I am lazy enough to not rename it. As for typing it later on… . Well zsh does that for me