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

Re: Hand-rolling migration to Git

From
Peter Karlsson <peter@softwolves.pp.se>
Date
Mar 31, 2008, 06:23 UTC
Message-ID
<Pine.LNX.4.64.0803310720520.26808@ds9.cixit.se>
In-Reply-To
<alpine.LSU.1.00.0803251137580.10660@wbgn129.biozentrum.uni-wuerzburg.de>
Johannes Schindelin:
>> Take a look at git-fast-import. It should be relatively easy to write a 
>> small script that converts from either (1) or (2) to a stream of 
>> git-fast-import commands.
> Yeah.  To get inspiration how the scripts should look like, read 
> contrib/fast-import/import-tars.perl, or look at 
> http://repo.or.cz/w/fast-export.git

I've played a bit with git-fast-import, but I sort of failed to get something working for PVCS export (see other thread).

The import-tars.perl script, however, was a very good idea. The simplest solutions for the multiple-directories source I had was just to tar it up and feed through import-tars.perl. After importing it into Git and repacking it with a suitably large --window argument, I had a Git repository of 64 megabytes, down from the four or so gigabytes of uncompressed directories. That did include removing some object files, though (but keeping some .exe's).

-- 
\\// Peter - http://www.softwolves.pp.se/
Previous: Johannes Schindelin
Message 4 of 4 in “Hand-rolling migration to Git”
  1. Peter KarlssonMar 25, 2008
  2. Johan HerlandMar 25, 2008
  3. Johannes SchindelinMar 25, 2008
  4. Peter KarlssonMar 31, 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.