Re: Why SHA are 40 bytes? (aka looking for flames)
- From
Nicolas Pitre <nico@cam.org>
- Date
- Apr 24, 2007, 02:44 UTC
- Message-ID
- <alpine.LFD.0.98.0704232236250.12375@xanadu.home>
- In-Reply-To
- <462D5370.8040905@zytor.com>
On Mon, 23 Apr 2007, H. Peter Anvin wrote:
Show 8 quoted lines
> Nicolas Pitre wrote: > > > > Object names aren't 40 bytes. They are 20 bytes. > > It is their hex representation that takes 40 bytes. > > > > Sure, but that's the way they're stored in *most* git objects, in particular > in commit objects.
Commit objects aren't *most* objects. They usually are blob and tree objects, and for the later the SHA1 references are stored as 20 byte binary.
Nicolas