Re: SHA1 collisions found
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Feb 25, 2017, 00:54 UTC
- Message-ID
- <CA+55aFy6G1QF3Msy2DZbyhFmn974wBeXVuZK78pJ8FgkyeU85g@mail.gmail.com>
- In-Reply-To
- <CA+55aFw6BLjPK-F0RGd9LT7X5xosKOXOxuhmKX65ZHn09r1xow@mail.gmail.com>
On Fri, Feb 24, 2017 at 4:39 PM, Linus Torvalds <torvalds@linux-foundation.org> wrote:
> > - you'd see in the "object->type" whether it's a new or old-style hash.
Actually, I take that back. I think it might be easier to keep "object->type" as-is, and it would only show the current OBJ_xyz fields. Then writing the SHA ends up deciding whether a OBJ_COMMIT gets written as "commit" or "commit2".
With the reachability rules, you'd never have any ambiguity about which to use.
Linus