295 points · by ingve · 11y ago · 133 comments
Git does something very well: it has great support for rewriting version histories. It nearly flawlessly supports almost every conceivable scenario of slicing, dicing, mixing and combining.
It also has great support for working at the sub-file granularity. For instance, this morning I moved a fix from an experimental branch to stable. The fix was part of a huge commit, and consisted of just a few "hunks" out of many in one file. It was obvious that the particular fix, though needed by the experimental changes, could be promoted to stable (it was a change of the kind where some code is altered in such a way that it no longer interacts with the experimental changes, and is improved at the same time.) With git I easily rewrote that big commit such that just those specific changes in the specific file were removed from that commit. This was done without touching anything in the working copy not so much as altering any modification timestamp! ("make" didn't even see that anything needed to be rebuilt after the commit rewrite.) In git we can do "keep my working copy as it is, but alter the history behind it, so those alterations then appear as staged, uncommitted changes". Then we can easily migrate the changes somewhere, like turning it into its own commit, perhaps on another branch. After I migrated those changes to master, I then went back to that branch and did a "git rebase". Lo and behold, that branch picked up the changes, and now it looks as if those changes were written on master all along, before the experimental changes were developed.
Programmers need this kind of thing because we are obsessed about making the perfect set of changes. Since the history of a code base is a digital artifact, we want to be able to hack that artifact to perfection too, not just the instantaneous/current view of the code itself.
Git is also like an adventure game in which you solve quests and acquire higher and higher status. This creates allure. The Novice Adventurer cannot understand all the reasons why the Grandmaster Wizards of GCC have switched to Git, but is mystified and fascinated.
Early on when Git was still new, I read about the different types of objects (files, trees, commit objects) and how they interact, and everything just clicked. It's the correct model for version control, and I like to believe that that's why it's winning.
In fact, all your praise for Git is something that, as far as I see it, flows directly from Git having the correct model for version control.
The fundamental concepts in all the DVCS's are almost indistinguishable; they're just packaged slightly differently.
It's tempting to seek a technological explanation for git's dominance; but all the obvious signs point to it simply being first-mover advantage. Where the other DVCS's do have technical advantages, they're rarely very significant for most people.
A rewritten branch isn't hard to pick up. Git tells you that the history has diverged (N commits here, M over there). If none of the local history is yours, you can just throw it away with a "git reset --hard <origin>/<branch>". Or else you can rebase those changes which are yours.
It's only bad to rewrite "really public" branches that are distributed to the world. Even then, it can be okay to clean up some oops: like seconds after pushing a release, some last minute change needs to be made (typo in the release notes file or whatever).
This doesn't matter: hg/Mercurial has to be 500% better than git to be able to replace it.
Look at the past changes: they've all been huge shifts in how we do version control, not minor improvements
The DVCSs were 500% better than Subversion (wow, distributed!)
Subversion was 500% better than CVS (wow, renames work! Branching is easy! http support!)
CVS was 500% better than RCS (wow, we can check out files concurrently)
http://www.minidisc.org/econ113-paper.htm
A technology needs to be 10x better than a previous one for widespread adoption. It has successfully explained many failed technologies and products.
With the ultimate irony that people largely use it in a centralized fashion.
The amount of force required to move an object at rest is greater than the amount of force required to maintain it already moving (or something like that).
when svn first came out (and up until a few years ago) branching was definitely not easy!
I couldn't care less if Git stopped making releases; what I'm using isn't the latest anyway and does everything I want. (Though I'd like any newly discovered security holes to be fixed in any pieces of Git that face the Internet; e.g. via embedding in CGIT).
Unless your project is weighty enough to have its own gravitational pull, github is a ridiculously easy place to contribute and make life easy for contributors.
https://www.reddit.com/r/emacs/comments/3hsab9/could_emacs_b...
None of the GNU projects (that I've ever seen) are officially hosted on GitHub.
Official Git repo: https://savannah.gnu.org/git/?group=emacs
Unofficial github mirror repo: https://github.com/emacs-mirror/emacs
https://github.com/gcc-mirror/gcc
It seems out of sync though.
I have more goodwill towards github than I do for RMS, with his gcc shenanigans.
Either way, GitHub is proprietary, so it is against GNU's principles.
Just like I don't need to see the exact farm where my tomatoes came from, or which mine the metal came from for my car engine, I don't need to see every single line of code for my Netflix player.
Seriously, where's the ethical concern there?
Where do you draw the line from "I don't trust anyone, I need to verify everything", to "I trust them enough to not worry too much", to "I don't care"?
> I face backlash from people who see no ethical concerns with proprietary software
I think this could be clearer. RMS himself has stated [0] that selling exceptions is perfectly fine, so even free software zealots do not object to proprietary licensing in all of its forms. I think most people object to proprietary licensing in some forms. This is a case where speaking in riddles and platitudes is not effective policy.
> or who are apologetic to "open source" instead
Again this is a platitude turn of phrase. I support some kinds of open source and not others, as do I expect most thinking people. Does that make me "apologetic"? Am I the problem? No clue.
> Usually it's in the form of some smartass who will redefine the word "freedom" to mean something different from the context at hand
Quite frankly, one could accuse the entire Free Software movement of this, as that is essentially its purpose: to redefine the loaded term "freedom" in a nonintuitive way.
But accepting for the sake of argument the FSF's vision of software "freedom" as the correct definition, I am not convinced it is an actual view instead of a post-hoc rationalization. For example, the FSF claims [1] the RPL is non-free for 3 reasons:
1. It puts limits on prices charged for an initial copy.
2. It requires notification of the original developer for publication of a modified version.
3. It requires publication of any modified version that an organization uses, even privately.
Now my question is this: which of the four freedoms, specifically, give rise to these objections? Because from my POV the RPL not only protects the four freedoms, but does so strongly, for exactly the reasons here that are presented as so-called "objections".
So, the only conclusion that I can draw, is that the 4Fs are a lot of nonsense, a "just-so" story to explain why GPL License is Best License. Freedom is allowed to go so far, but no further, until GPL v4, and then we can go further.
I am sorry if some of this seems trollish or offputting. I promise it is not. I have read probably hundreds of books and essays on this and I cannot find anything that satisfies me that "Free Software" is an intellectually defensible philosophy. This may be because the people who are best-positioned to defend it have better things to do than defend it to me.
I want to like the free software community, and we do collaborate, in a sense, but it is always strategic and not ideological. It just so happens, in cases, the GPL and my objectives are compatible. But the FSF's objectives and my objectives are not really compatible at all. So there is the same funny taste in my mouth from working at cross-purposes that I get when writing proprietary software. It has the same artificiality.
... unless you chose to interpret that as "oh, hey, Clang is using Git, so we (GCC) should too!", which is both incorrect (Clang uses Subversion) and a fairly silly motivation regardless. If that interpretation is both incorrect and silly, why not try for a more reasonable/charitable interpretation like mine? Did it not occur to you?
I'm having a hard time understanding why jussij was down-voted... I suppose it's because people are quick to interpret others in ways that put them down, or because the down-voters lack the intelligence to make the more likely interpretation. Either way, it's disappointing.
No. The pressure comes from gcc developers who prefer git over subversion.
https://news.ycombinator.com/item?id=9292209
But otherwise, rms uses git quite alright. Let's not portray him as any crazier than he actually is.
I call that a bit crazy, but also crazy reasonable, because GNU really is the foundation of the OS, along with Linux.
>We should use Bzr because that is becoming a GNU package. GNU packages should show loyalty to each other when possible, and in this case it is possible.[1]
But now its main repository is managed with git[2], Savannah as a whole makes extensive use of git,[3] and Stallman tacitly supports git by linking to git repos from his personal website.[4]
1. http://lwn.net/Articles/272853/ 2. http://savannah.gnu.org/projects/emacs/ 3. http://savannah.gnu.org/maintenance/UsingGit/ 3. https://stallman.org/stallman-computing.html