Re: Why SHA are 40 bytes? (aka looking for flames)
- From
- Andy Parkins <andyparkins@gmail.com>
- Date
- Apr 21, 2007, 15:08 UTC
- Message-ID
- <200704211608.06171.andyparkins@gmail.com>
- In-Reply-To
- <e5bfff550704210635r4008c3c6tf5f55f970bf85e44@mail.gmail.com>
On Saturday 2007, April 21, Marco Costalba wrote:
> Well, why to store always the full length SHA?
Well apart from being easier than working out the optimum size for every single object write, one really good reason would be that there is no way to predict that an object in the future won't have a conflicting SHA - every object /has/ to be stored with its full hash, because you are preventing conflicts with everything object now, in the past and all possible futures.
Wow - git is like a time machine.
Andy
-- Dr Andy Parkins, M Eng (hons), MIET andyparkins@gmail.com