On 1/13/23 17:41, Konstantin Ryabitsev wrote:
It doesn't matter how it works behind the scenes as long as the produced hash is not unique (and CRC gives you no assurance of being unique). Git is built on the concept that every object has a unique hash. If this is no longer true, then it's literally no longer git, but is something else.
That's why I say you need a fixup field, in case of collisions. CRC is used plenty all over the place and has good entropy.
--HPS