this post was submitted on 14 Mar 2021
36 points (86.0% liked)
Open Source
32699 readers
1306 users here now
All about open source! Feel free to ask questions, and share news, and interesting stuff!
Useful Links
- Open Source Initiative
- Free Software Foundation
- Electronic Frontier Foundation
- Software Freedom Conservancy
- It's FOSS
- Android FOSS Apps Megathread
Rules
- Posts must be relevant to the open source ideology
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon from opensource.org, but we are not affiliated with them.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Did we, though? You are the one who brought up the whole "master"/"main" debate, it was not part of my argument. And in any case, nothing in the code prevents you from naming your branch "master", only the default setting was changed.
Yes there is. Your git client will automatically checkout the default branch from the remote. You can even programmatically detect the current branch after cloning so what's your problem?
Yes, now you have to get out of your way to detect the name of the master branch. You used to be able to assume that it was "master", obviously much less code required
That's not true. Even when "master" was the default, i had to "get out of my way" to support many projects who did not use "master" as default branch name. Whatever setting i personally use on my repos, i can hardcode in my scripts. When dealing with other people's repositories, it's an entirely different story.