Re: [PATCH] Implement fast hash-collision detection
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Nov 29, 2011, 13:17 UTC
- Message-ID
- <CACsJy8BRhoYM+Lb8afp=3rKzYNOEq0JY8uS9mD1ovz3uyJVWOA@mail.gmail.com>
- In-Reply-To
- <20111129090733.GA22046@sigill.intra.peff.net>
On Tue, Nov 29, 2011 at 4:07 PM, Jeff King <peff@peff.net> wrote:
Show 6 quoted lines
> However, it's harder for trees. Each entry needs to have the new digest > added, but there simply isn't room in the format. So we would have to > change the tree format, breaking interoperability with older versions of > git. And all of your tree sha1's would change as soon as you wrote them > with the new format. That's only slightly better than just swapping > sha1 out for a better algorithm.
I think we could hide the new digest after NUL at the end of path name. C Git at least does not seem to care whatever after NUL.
-- Duy