‹ BackHN Continuity

Thread

Git 3.0's upcoming SHA-256 default will be a costly mistake

570 points · 536 comments · chmaynard

  1. storyinmemo · · focus · HN ↗
    Yes every repo is either one or the other but you fix that by rehashing the entire repo. Everyone can do this independently. It's entirely possible to maintain to identical repos in SHA1 and SHA256 mode but for the most part I suspect once updated people will simply pull down the new repo and use git 3.0 as a required version.

    As migrations go, it's reading as simple to me. You'll just have to backpoint the commit signatures. I must assume there's a backwards compatible reference for them in git 3, right?

    Or drop them and reference the old structure in a dire pinch.

    1. mort96 · · focus · HN ↗
      Re-hash the entire repo as in rewriting all history? Hooo boy will that be a mess, I deal with things which reverence commits by hash in repos all the damn time. There are thousands of them in every Yocto project!
      1. iamnothere · · focus · HN ↗
        Yes, this would cause big issues for Nix based build systems or any others that reference commits by hash.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.