git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Support 64-bit indexes for pack files.

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 27, 2007, 20:35 UTC
Message-ID
<Pine.LNX.4.63.0702272134040.22628@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<F4EA27AD-EF1C-4BF2-8D52-945E0AE51006@adacore.com>
Hi,
On Tue, 27 Feb 2007, Geert Bosch wrote:
Show 16 quoted lines
> 
> 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 ;-)

I don't know if it was included for that reason, but you can excuse it that way. :-)

> 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.
But the protocol expects a valid pack! (Including a count...)

Besides, the pack index is a purely local thin, reconstructed from the pack when fetching...

Ciao, Dscho

Previous: Geert BoschNext: Troy Telford
Message 17 of 20 in “Support 64-bit indexes for pack files.”
  1. Support 64-bit indexes for pack files.Troy Telford, Feb 26, 2007
  2. Shawn O. PearceFeb 26, 2007
  3. Nicolas PitreFeb 27, 2007
  4. Shawn O. PearceFeb 27, 2007
  5. Nicolas PitreFeb 27, 2007
  6. Geert BoschFeb 27, 2007
  7. Nicolas PitreFeb 27, 2007
  8. Geert BoschFeb 27, 2007
  9. Shawn O. PearceFeb 27, 2007
  10. Geert BoschFeb 27, 2007
  11. Nicolas PitreFeb 27, 2007
  12. Shawn O. PearceFeb 28, 2007
  13. Nicolas PitreFeb 28, 2007
  14. Nicolas PitreFeb 27, 2007
  15. Johannes SchindelinFeb 27, 2007
  16. Geert BoschFeb 27, 2007
  17. Johannes SchindelinFeb 27, 2007
  18. Troy TelfordFeb 27, 2007
  19. Nicolas PitreFeb 27, 2007
  20. Troy TelfordFeb 28, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.