Re: Gitorious should use CRC128 / 256 / 512 instead of SHA-1
- From
Hans Petter Selasky <hps@selasky.org>
- Date
- Jan 13, 2023, 16:35 UTC
- Message-ID
- <038b4ea4-2a10-9b5a-14e4-e987a68e93b0@selasky.org>
- In-Reply-To
- <20230113162721.qwl2asjo542cxe3c@meerkat.local>
On 1/13/23 17:27, Konstantin Ryabitsev wrote:
Show 6 quoted lines
> Not to discourage you, but you seem to be making statements without a good > understanding of how git works. If there is a history rewrite (even one that > for some reason goes back millions of commits) all hash calculations will > happen exactly once -- on the system of the person who's rewriting the > history. After they push it, it's just a bunch of objects that everyone else > merely downloads.
If you used CRC, you would not need that, because CRC calculations are "concatenatable", while SHA-1's are not. CRC would just need the first and the last hash, and then you would apply the "difference".
--HPS