git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Peter Karlsson <peter@softwolves.pp.se>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: Johan Herland <johan@herland.net>, git@vger.kernel.org
Subject: Re: Hand-rolling migration to Git
Date: Mon, 31 Mar 2008 07:23:27 +0100 (CET)	[thread overview]
Message-ID: <Pine.LNX.4.64.0803310720520.26808@ds9.cixit.se> (raw)
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/

      reply	other threads:[~2008-03-31  6:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-25 10:03 Hand-rolling migration to Git Peter Karlsson
2008-03-25 10:14 ` Johan Herland
2008-03-25 10:39   ` Johannes Schindelin
2008-03-31  6:23     ` Peter Karlsson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.0803310720520.26808@ds9.cixit.se \
    --to=peter@softwolves.pp.se \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=johan@herland.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).