by kbenson · 10y ago · 0 comments
Wait, what? Git was the response from Torvalds to BitKeeper being proprietary and the author being upset with some kernel developers. It's basically taking what was then state of the art for DCVS and reimplementing it, not coming up with some new paradigm. It's a good program, and to my knowledge it was engineered well, but let's not rewrite history so Torvalds is the father of DVCS.
Git is nothing like a reimplementation of BitKeeper - the closest inspiration and model is actaually Monotone, which had the same basic concepts but was slow and clunky. IIRC, Torvalds credited monotone/Hoare for using merkle trees (and other things)
Tridge (another kernel dev) reversed BK protocol and repo structure, as trivial as they were. BK people got understandably upset about this, in part because they were providing BK to the Linux Kernel Project for free. So Tridge's little stunt basically killed any and all goodwill between BK and LKP and Linus needed a replacement. All alternatives had issues and everyone just kept going in circles, bitching and moaning. So in a true programmers way Linus sat down and wrote what he wanted. The end.
Bitkeeper's sole claim of ownership moral or legal was to the bitkeeper software which nobody violated. What Tridge did was come up with another way for the owners of the relevant data to access their own information something wholly reasonable and justified.
What you dismiss as a stunt proved in a stroke how much of a mistake the relationship with Bitkeeper was.
This is approximately like sony records telling you that you can't take your cd and put it in a Samsung stereo and you defending sony except no reasonable person supposes that creators of material objects aquire moral rights to control the use thereof.
This isn't true at all. Anyone could download the source code, tweak it, and submit patches. You can even use your own version control system to track your changes.
The project managers may have used bitkeeper, but to everyone else the only thing that bitkeeper provided was, at best, convenience.
He made a connection to the BitKeeper server and typed "help".
https://lwn.net/Articles/132938/
The BitKeeper developer was an ass, not need to be polite about it. He issued DMCA requests to websites that were analyzing his license, claiming that it was copyrighted.
HN discussion: https://news.ycombinator.com/item?id=8650483
Content-addressing (ie hashes) enables decentralization (hashes are the same whereever you are) and integrity (changing content will change the hash). (Perhaps inspired by Tridge, who did rsync which uses hashes to test for content changes?) It's incredibly fast because commits are almost as simple as copying, and because Linus knows how to C.
Linus left out some features, like renames (which bitkeeper has), so this simple idea would be enough.
Some people rave about the index/cache, though it's separable from the core idea.
https://en.wikipedia.org/wiki/Monotone_(software)#Monotone_a...
Could you explain why, for a tool meant to be used by humans, the underlying model (which I agree is very elegant) counts more than the user interface?
Function matters more than anything else... and exactly what "function" means and encompasses can be discussed, but it's difficult to define function such as to exclude git's model from git's function.
It's just like the movies. You can make a bad movie from a good script, but a bad script never, ever made a good movie.
The interface that humans should use would have been cogito, but after some time there was no interest anymore in this and it was discontinued.
It does not. But git exposes this all the time, so committed git users feel that's a good thing, because understanding it makes helps them to make sense of some of the worst parts of the UX.
The mistake is to believe there is a U<I|X> in the first place.
It does not, however, stop you from using one of the many graphical tools, that are fine for simple usage and will all eventually fall short.
You could use a GUI to make complex HTTP routes, through proxies and DNS records via drag&drop, and then one day you'll have some weird DNSSEC error that the maintainer does not care about, and you will have to explain that to whoever is losing money.
Acknowledging a problem is not as trivial as it was first thought is critical in our line of work in my opinion.
BitKeeper existed, a few projects used darcs, GNU arch and monotone existed but I don't think I ever encountered a project using either (the Canonical arch fork aside), and that's mostly a wrap for free or Free options.
He may not be the father of a novel concept which he could write a paper about, but Git and Mercurial existing certainly coincided with the enormous uptick in DVCS usage and visibility.
I suppose the difference in opinion about the term "father" just comes down to being about the theory behind the problem space or wildly successful implementation, and IMO "taking known solutions and putting them together in a more successful way" is novel enough to claim credit.
and what about this line on the wikipedia page?
> This [community] version of BitKeeper also required that certain meta-information about changes be stored on computer servers operated by BitMover, an addition that made it impossible for community version users to run projects of which BitMover was unaware.
so not storing some changes locally, and being unable to access it if you don't have a paying version of the client seems to be really archaic compared to the simplicity of git. i could be misinterpreting what they mean by meta-information though.
The thing is, Git is pretty much the most horribly over complicated user tool in history. Learning how to use Git properly is more complicated than learning how to use Unix. Several times more complicated. I honestly would be more comfortable giving a modern team who had never seen a VCS before just plain old CVS, because even if it's horrible, at least it's simple and you can just work around the stupidity. Git will leave you trapped in a hellscape of reading manuals and howtos and bloating personal repositories, and not really do anything particularly great except feature branches.
DVCS is great when you need it, but when you don't need it, it's annoying as hell.
Svn in particular was so awkward to port diffs between branches and carry diffs forward in time (git equivalent of rebase) that I built a system of shell scripts around patch files. Instead of creating a branch and committing changes (so painful to create or switch branches in svn), I saved the working state diff as a patch file and reset the working directory whenever I had to switch to a different task. I had a couple of shell scripts, one to save the current diff and reset, and another to apply a diff to the current working tree. And I had a third one to do a three-way merge to resolve conflicts when the tree had been updated since the patch file had been created.
Git is the first SCCS I used that made sense.
Without the right mental model, I expect git would be very difficult to use. I might not recommend it for a team I didn't think could grasp the concept of a DAG. Then again, such a team will basically be cargo culting every moderately complex technology they use, so what does it matter if their "committing_notes.txt" file contains git commands or something else?
At the end of the day, a VCS is just a tool, one of many that I need to learn and use to do my job, and it's not worth the effort to learn both git and hg.
Somewhat related anecdote: years ago I decided to learn Dvorak, but eventually switched back, because by the time I'd become proficient, my ability to type in QWERTY's completely gone. From what I'd read online at the time this was unusual: most people who learned Dvorak could switch back (& forth) within a few seconds to a few minutes. It took me probably a week or two to be able to touch type in QWERTY again, and maybe a month to get back to my original speed. And by then it was as if I'd never learned Dvorak at all.
Anyway, the point of the story is: maybe I just have shit memory :-)
Using Git for everything is like riding a bicycle with four derailleurs to pick up milk from the corner store. Granted, this is what I do right now; just because some technology is complicated or annoying doesn't mean I don't use it. But I wouldn't recommend it to others.
git made several additional breakthroughs in terms of working in terms of snapshots instead of diffsets, keeping much less data, and performing many computations late rather than early. In essence, these result in a system infinitely more flexible and expandable than prior version control systems. Adding new ways to change the source code in CVS required a whole new data format (SVN). In git, that's a minor change.
The full power of git hasn't been anywhere close to exploited yet. The data model is very general-purpose, fast, and robust. It can do much more than just source control.