Re: Hand-rolling migration to Git

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux