From: Magnus Hjorth <magnus.hjorth@home.se>
To: Jakub Narebski <jnareb@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Committing with past date?
Date: Tue, 02 Sep 2008 04:42:14 +0200 [thread overview]
Message-ID: <1220323334.5476.29.camel@magnus-desktop> (raw)
In-Reply-To: <200809020231.32780.jnareb@gmail.com>
On Tue, 2008-09-02 at 02:31 +0200, Jakub Narebski wrote:
> On Mon, 1 Sep 2008, Magnus Hjorth wrote:
> > On Sun, 2008-08-31 at 04:12 -0700, Jakub Narebski wrote:
> > > Magnus Hjorth <magnus.hjorth@home.se> writes:
> > >
> > >
> > > > I'm trying to port over old version history that I maintained manually
> > > > (tarballs and changelogs) into a git repository.
> > >
> > > For that, I think it would be best to take a look at example
> > > fast-import script: contrib/fast-import/import-tars.perl;
> > > there is equivalent contrib/fast-import/import-zips.py if you
> > > perfer either Pyhon over Perl, and/or zips over tarballs.
> By the way, is there any reason _not_ to use import-tars.perl from
> the contrib/fast-import in your case?
Well, I was planning do a lot of manual cleanup of the files also
(splitting commits, removing auto-generated files etc), so importing the
tarballs would just be the first step. But I'll try it, it can still be
useful to get a starting point...
> >
> > I have successfully imported the CVS history using git-cvsimport, but
> > now I want to add these older revisions that were made with tarballs to
> > the same tree, before the CVS revisions. The last tarball and the first
> > CVS revision have identical content, and I would like to somehow "glue"
> > the histories together.
> >
> > Can this be done?
>
> It can be done for example using grafts. Search git mailing list for
> graftshistory (or something like that) script, which was used to join
> using grafts git "current work" Linux repository (started from "scratch").
> Then you can check in gitk if everything is all right. If you truly
> require connected histories, and not being able to locally turn on
> and off the historical repository, you can always use git-filter-branch
> which (among others) can turn grafts into true commits.
The grafts approach looks interesting.
I still need some way to create multiple unconnected trees in one repo.
Maybe the safest way to do that is to create a separate historic repo
first and then transfer the historic branch using git-bundle to my main
working repo.
Regards,
Magnus
next prev parent reply other threads:[~2008-09-02 2:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-31 10:44 Committing with past date? Magnus Hjorth
2008-08-31 11:12 ` Jakub Narebski
2008-09-01 16:25 ` Magnus Hjorth
2008-09-01 19:02 ` Russ Dill
2008-09-02 0:31 ` Jakub Narebski
2008-09-02 2:42 ` Magnus Hjorth [this message]
2009-02-03 4:18 ` Similar thread Zabre
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=1220323334.5476.29.camel@magnus-desktop \
--to=magnus.hjorth@home.se \
--cc=git@vger.kernel.org \
--cc=jnareb@gmail.com \
/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).