From: Geert Bosch Date: Tue, 27 Feb 2007 20:25:39 GMT Subject: Re: [PATCH] Support 64-bit indexes for pack files. Message-ID: In-Reply-To: On Feb 27, 2007, at 15:05, Johannes Schindelin wrote: > On Tue, 27 Feb 2007, Geert Bosch wrote: > >> The object-count at the beginning of the pack is a little strange for >> local on-disk pack files, as it is data that can easily be derived. > > The SHA1 is also easily derived. So think of it as a doubly secure > way to > ensure integrity. > > Remember, there were some people unable to accept that SHA1 > collisions are > _unlikely_... Ah, you include the count because you don't trust the SHA1 and now you can count that you got the right number of objects ;-) It's just that I don't see a use for the count in a local on-disk pack. In these cases we'll always have an index. We can keep the current protocol for sending/receiving packs, no need to ever upgrade to v4 there. -Geert