Hacker News new | past | comments | ask | show | jobs | submit login
Git's Little Bundle of Joy (progit.org)
81 points by bugs on March 10, 2010 | hide | past | favorite | 12 comments



Git keeps surprizing me with it's power. I would like to know if this exists as well in some form in Hg/Bzr...


I _believe_ this idea was taken from Hg, actually. Though it's not new - 'bundle' has been in Git for almost 3 years now, since 1.5.1


Um, this idea was taken from BitKeeper which has had this feature for 10 years.

I know it's not cool to give BK any credit but almost 100% of what is in git, hg, bzr came from BK and you can go dig through the history and prove that for yourself.


And that is why annoying one of the better programmers in the world today by withdrawing his free license is a bad idea. Git only exists because Linus didn't want to migrate to the commercial version of BK.


Maybe you ought to talk to Linus about that and get the real answer. What you just said is nonsense and Linus, if you can get his attention, will be happy to set you straight.

In case you can't get his attention, the real story is that Linus understood that letting Tridge create a clone of BK was just asking for trouble. Imagine if there was a commercial clone of git, done by people without access to the git source code. And it was used to read and write git repos. Now imagine that the commercial guys didn't really understand git and they made a mistake and that mistake corrupted part of the repo. And imagine that that corruption got picked up and propogated by the real git.

Kind of a mess, right? Especially when you consider that git is a distributed system. Actually happened to the Linux kernel when it was in BK because someone went and editted the metadata directly to "fix" a problem. How do you fix a problem that is in thousands of repos? We fixed it by putting knowledge of the Linux kernel and that problem into BK and doing a new release.

Linus was smart enough to realize that that sort of problem was extremely likely if people started using a Tridge created BK clone. And he realized that there was zero chance that when problems occurred that people would blame them on Tridge, BK would catch all the flack. So he got off BK because he was actually grateful for the help we provided and wasn't interested in causing us harm.

This was after him spending months arguing with Tridge that Tridge was doing the wrong thing.

But don't take my word for it, go ask him.


I appreciate the correction. My statement was based on my memory of the news reports at the time. Clearly my memory failed in this case. :-p


No problem, the news at the time was pretty slanted and I was too burned out to go correct it. Better late than never I suppose.

Have fun with Git, other than cruddy rename support, it's a nice system. Frigging fast, I gotta hand that one to Linus, it's faster than BK on some stuff.


I am only recently using Git for larger projects and in more different ways. It's great how you can give it a twist to the way you work :).


hg export, hg import


no, i think that maps to 'git format-patch' and 'git am' for creating and applying patches as email. there is actually an 'hg bundle' command that does largely the same thing as 'git bundle'


Thanks for the correction. Hg newbie.


Good to know! I can imagine using 'git bundle'.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: