3 ms·
I didn't get the argument against just converting? Sure some code bases are large and spread out, but any git repo needs to have one blessed central point, and
by alkonaut 7y ago
I didn't get the argument against just converting? Sure some code bases are large and spread out, but any git repo needs to have one blessed central point, and everyone needs to be able to just re-clone from the central repository whenever history is rewritten for whatever reason (could be that a huge file is trimmed from the past etc). Why can't all commits in the Kernel history be rewritten to SHA256? (Other than that it would be an annoying interruption in the development)?
- corbet 7y agoThe kernel doesn't really have the one central blessed point of which you speak. Sure you can grab mainline releases from Linus's repository, but that's not where the development actually happens. It really is a distributed project, and having to delete all those old repositories would really hurt.
- alkonaut 7y agoIf 2 separate copies of the same repository does the same rewrite to sha256, their histories are still compatible and equal up to the point where they diverge. So other than that the rewrite needs to happen in more places, it should still be doable. Needs to happen at more or less the same time however.
- velcrovan 7y agoThe whole point of git is that there doesn't need to be a blessed central point.
- RichardCA 7y agoMost development shops are using the traditional client-server model, or self-host using Gitlab. I personally would never allow a repo with two hashing algorithms to exist on my watch. If you have ever had to use a tool like BFG to prune large objects from a repo you'll see it's not that bad, but it does require users to re-clone. I would want to use the same process for SHA256 - that is let it be the default for new projects and then convert older projects based on need. But there needs to be a BFG style conversion tool that spits out an object id map as output. Here's more info on BFG: https://rtyley.github.io/bfg-repo-cleaner/ https://rtyley.github.io/bfg-repo-cleaner/