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

Re: some questions

From
Shawn O. Pearce <spearce@spearce.org>
Date
Aug 22, 2008, 14:08 UTC
Message-ID
<20080822140832.GC3483@spearce.org>
In-Reply-To
<vpqtzddtoq2.fsf@bauges.imag.fr>
Matthieu Moy <Matthieu.Moy@imag.fr> wrote:
Show 18 quoted lines
> Thomas Pasch <thomas.pasch@jentro.com> writes:
> >
> > I try to migrate our old cvs repo to git.
> > However, I still have to following questions
> > that I found difficult to answer with
> > the documentation.
> >
> > - Is there a way to convert a indexVersion 1
> >   repo to indexVersion 2? (And vice versa?)
> 
> The index itself is just a little file in .git/index. There might be a
> better solution, but just
> 
>   rm .git/index
>   git reset
> 
> seems to do it (of course, don't do while you have staged changes in
> the index !).

True, that would reset the dircache (aka .git/index). But we only have effectively 1 version of the dircache. Sure there was an older version, way back before it got a version header and the ability to get extension sections added. I don't think there are many clients using that format anymore. That format predates the 1.4 series, and we really encourage people to be on 1.5 or later.

The original poster asked about indexVersion 1 and indexVersion 2,
which means he is probably talking about pack.indexVersion and thus
a .idx file alongside a pack, not the dircache file that tracks
the working tree state.
 
-- 
Shawn.
Previous: Matthieu MoyNext: Jakub Narebski
Message 3 of 5 in “some questions”
  1. Thomas PaschAug 22, 2008
  2. Matthieu MoyAug 22, 2008
  3. Shawn O. PearceAug 22, 2008
  4. Jakub NarebskiAug 22, 2008
  5. Shawn O. PearceAug 22, 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.