On 1/13/23 17:27, Konstantin Ryabitsev wrote:
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