Originally posted by tomas
View Post
Announcement
Collapse
No announcement yet.
Git 2.28 Now Shipping With Feature For Configurable Default/Main Branch Name
Collapse
X
-
-
Originally posted by someone View PostMost of the repos I work with don't have a 'develop' branch, so that's nonsense. Don't assume your workflow is universal.
- Likes 2
Comment
-
lucrus The motivation is irrelevant since the change by itself is sound, both from a technical point of view as well as from a use case perspective. To remove the hard coded name of the initial branch and make it configurable is a sound change. The underlying motive is irrelevant. Also, the name "master" is in fact worse than "main" or "default" since it implicates a relationship that is non-existent. Not once during my 20 years as a professional software developer have I ever encountered a case where "master" would denote "master copy" or anything like that. It has always denoted a master-slave relationship.Last edited by tomas; 28 July 2020, 12:28 PM.
- Likes 2
Comment
-
Originally posted by bug77 View Post
Considering "main" is used for a lot of other things in programming (main class, main entry point and whatnot), it is not a great pick. "Main" isn't even the main branch (unless you use git wrong). The main branch, where most of the activity takes place, is "develop".
Following the tradition from SVN where they were using the "trunk" as development branch, so they are probably using git wrong.
- Likes 1
Comment
-
starshipeleven There is no "wrong way" with git, you choose the work flow that suits you best. That is the strength of git, that it's flexible and does not assume a particular way of working. And that is also why the proposed change makes sense in a git context. Since there is no pre-defined work flow in git and the initial branch, that just so happens to be named "master", does not differ from any other branch, it is logical that the name of the initial branch should be made configurable. Those who still believe that "master" is a good name may continue to use that name in their git repos.Last edited by tomas; 28 July 2020, 11:11 AM.
Comment
-
Originally posted by starshipeleven View PostFor OpenWrt, the "master" is the development branch, and the stable branches are branches with the version name.
Following the tradition from SVN where they were using the "trunk" as development branch, so they are probably using git wrong.
tomas Any flow that doesn't allow you to ship/test/integrate quickly is wrong, regardless of the VCS. Proper VCS flows are even part of a CMMI certification (I think that is not too strict, but it does recommend best practices).Last edited by bug77; 28 July 2020, 10:56 AM.
Comment
-
Originally posted by tomas View Poststarshipeleven There is no "wrong way" with git,
flexible and does not assume a particular way of working. And that is also why the proposed change makes sense in a git context. Since there is no pre-defined work flow in git and the initial branch, that happens to be named "master", does not differ from any other branch, it is logical that the name of the initial branch should be made configurable. Those who still believe that "master" is a good name may continue to use that name in their git repos.
Code:git branch -m master <new_name>
Everyone else will use whatever is default, and focus on the actual code.
This change and any discussion about it is mostly a nothingburger.
- Likes 2
Comment
-
Originally posted by starshipeleven View PostYeah I was just kidding. As long as you are using git it's ok.
To be fair, anyone that ever gave 2 shits about the name of default branch just did
Code:git branch -m master <new_name>
Everyone else will use whatever is default, and focus on the actual code.
This change and any discussion about it is mostly a nothingburger.
But master, default, main, trunk. Regardless of the default branch name chosen, people will still disagree on the ideal workflow for their VCS system. So I don't mind if we get away from a loaded term. It'll let us get away from fighting about the terminology and back to arguing about what color that bike shed should be.
Maybe it does go back to audio golden master recordings, but it could just as easily be rooted in master/slave terminology (e.g. IDE master/slave, master/slave back-end servers, etc). It doesn't really cost me anything to change it, beyond maybe tweaking a build-server config here or there, and maybe changing which remote branch to track from an upstream repository.
Comment
-
Originally posted by Veerappan View PostI don't mind if we get away from a loaded term. It'll let us get away from fighting about the terminology and back to arguing about what color that bike shed should be.
The issue about "fighting terminology" is that you open the door to sjw people that really should gtfo and not bother others with their historical revisionism, this is generally bad as people like that don't content themselves with "fighting terminology" but will eventually impose a biased CoC and other bs they can then (ab)use to get more power in the project.
- Likes 3
Comment
Comment