I think you may have got the wrong end of the stick about the Linux Kernel "flow". There is a single master branch, but it is heavily guarded. Only Linus (and a select few) have access to it, but there is still only one true repo that the kernel is published from. origin/master.
How changes get there is covered well by your article - people push their changes up "the ladder" until it gets into this master branch. But this rigid security model does not suit everyone.
My team, for example, are 3 devs + a CTO that dabbles from time to time. We are all full time remote workers from all over the globe so pushing/pulling from one another is just impractical, and we don't have time to be reading and reviewing each other's code all the time.
What git does allow us to do is manage our changes via branches, stashing, etc. that traditional CVS (SVN, in our case) doesn't do well. For example in the case of an emergency patch for live, I can quickly checkout the current version into a new branch, make my change, push, build, deploy, and merge back into master a lot easier and more efficiently than SVN ever could.
Or if one of us wants to have a stab at making huge sweeping changes across much of the code base (such as a different ORM or changing from MVC to MVVM, or whatever) it's very nice having versioning that allow me to locally track my changes without needing to push/publish my changes for everyone.
That image you are promoting as an image of distributed repos is nothing of the sort. It's a graphical representation of commits (see: gource) and the tree represents file paths from a single repo (note the url at the base of the image.. that's also the single repo in question!)
Whatever gets released as the linux kernel has come from that one master branch.
Just to be clear, I am not saying the linux kernel is developed on a single repo. I am fully aware that people are making copies (forking) their own repos to make changes. BUT I am saying that all changes that make it into the kernel release(s) are eventually pushed back to TheOneTrueBranchâ„¢
Which is completely beyond the point. What Linus Torvalds releases as the Linux Kernel always comes from that "vanilla" branch. Gentoo have their own, Ubuntu have their own, whatever. That's so beyond scope I can only surmise you either don't understand product management or are desperately clutching at straws. I'm not going to argue this anymore. There is a single master branch for what Linus Torvalds and the Linux Kernel group release as his/their product, which is complete affirmation of my point. What others do with that after the fact is not relevant.
61
u/Jestar342 Aug 23 '17 edited Aug 23 '17
I think you may have got the wrong end of the stick about the Linux Kernel "flow". There is a single master branch, but it is heavily guarded. Only Linus (and a select few) have access to it, but there is still only one true repo that the kernel is published from. origin/master.
How changes get there is covered well by your article - people push their changes up "the ladder" until it gets into this master branch. But this rigid security model does not suit everyone.
My team, for example, are 3 devs + a CTO that dabbles from time to time. We are all full time remote workers from all over the globe so pushing/pulling from one another is just impractical, and we don't have time to be reading and reviewing each other's code all the time.
What git does allow us to do is manage our changes via branches, stashing, etc. that traditional CVS (SVN, in our case) doesn't do well. For example in the case of an emergency patch for live, I can quickly checkout the current version into a new branch, make my change, push, build, deploy, and merge back into master a lot easier and more efficiently than SVN ever could.
Or if one of us wants to have a stab at making huge sweeping changes across much of the code base (such as a different ORM or changing from MVC to MVVM, or whatever) it's very nice having versioning that allow me to locally track my changes without needing to push/publish my changes for everyone.