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

Re: git-add,& "file vanishing" -> need git-add again

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
Dec 21, 2006, 20:27 UTC
Message-ID
<46a038f90612211227v2f1325e5i96ca6f773eb05def@mail.gmail.com>
In-Reply-To
<20061221141335.65170.qmail@web86902.mail.ukl.yahoo.com>
On 12/22/06, David Tweed <tweed314@yahoo.co.uk> wrote:
> Sidenote: I'm moving the database from the old format to the new one by repeatedly unpacking
> the old database for snapshot X, git-add'ing any file names which have _never_ been in any snapshot
> before, git-commit -a, git-tag, then remove all the files unpacked by the
> old database and move onto snapshot X+1. This takes less than a second per snapshot.

Not sure how large your snapshots are -- a second sounds like a long time for git operations. While it is a bit more complex, you _can_ operate directly on the index, and the "snapshot" never needs to hit the disk as such during your migration.

Have a look at how the cvsimport script works for an example.
cheers.
martin
Previous: David Tweed
Message 2 of 2 in “git-add,& "file vanishing" -> need git-add again?”
  1. David TweedDec 21, 2006
  2. Martin LanghoffDec 21, 2006

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.