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

Re: [PATCH] pack.indexversion config option now defaults to 2

From
Nicolas Pitre <nico@cam.org>
Date
Jun 25, 2008, 18:53 UTC
Message-ID
<alpine.LFD.1.10.0806251449530.2979@xanadu.home>
In-Reply-To
<20080625055605.GD28563@glandium.org>
On Wed, 25 Jun 2008, Mike Hommey wrote:
Show 26 quoted lines
> On Tue, Jun 24, 2008 at 09:59:06PM -0700, Junio C Hamano wrote:
> > Linus Torvalds <torvalds@linux-foundation.org> writes:
> > 
> > > On Wed, 25 Jun 2008, Nicolas Pitre wrote:
> > >> 
> > >> Git older than version 1.5.2 (or any other git version with this option
> > >> set to 1) may revert to version 1 of the pack index by manually deleting
> > >> all .idx files and recreating them using 'git index-pack'.  Communication
> > >> over the git native protocol is unaffected since the pack index is never
> > >> transferred.
> > >
> > > Rather than talk about when it does _not_ matter, wouldn't it be better to 
> > > talk about when it _can_ matter?
> > >
> > > Namely when using dumb protocols, either http or rsync, with the other end 
> > > being some ancient git thing (and it is worth mentioning version of what 
> > > counts as 'ancient' too, I can't remember, probably means that pretty much 
> > > nobody else can either).
> > 
> > I agree with you that the description of the change (in the commit log)
> > and the instruction (in the documentation) could be more helpful and
> > explicit.
> (...)
> 
> Wouldn't it be a good idea to add a warning in git update-server-info
> when it detects pack.indexVersion is not 1, too ?

That would give the idea that index v2 is not good, while what we want is to encourage everyone to move to index v2 ASAP.

Nicolas
Previous: Mike HommeyNext: Mike Hommey
Message 7 of 10 in “pack.indexversion config option now defaults to 2”
  1. pack.indexversion config option now defaults to 2Nicolas Pitre, Jun 25, 2008
  2. Linus TorvaldsJun 25, 2008
  3. Junio C HamanoJun 25, 2008
  4. Mike HommeyJun 25, 2008
  5. Junio C HamanoJun 25, 2008
  6. Mike HommeyJun 25, 2008
  7. Nicolas PitreJun 25, 2008
  8. Mike HommeyJun 25, 2008
  9. Nicolas PitreJun 25, 2008
  10. Junio C HamanoJun 25, 2008

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.