From: Nicolas Pitre Date: Tue, 24 Apr 2007 02:44:30 GMT Subject: Re: Why SHA are 40 bytes? (aka looking for flames) Message-ID: In-Reply-To: <462D5370.8040905@zytor.com> On Mon, 23 Apr 2007, H. Peter Anvin wrote: > 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