From: Jonathan Nieder <jrnieder@gmail.com>
To: Ken Brownfield <krb@irridia.com>
Cc: git@vger.kernel.org, David Barr <david.barr@cordelta.com>,
Elijah Newren <newren@gmail.com>,
skimo@kotnet.org, Eric Raymond <esr@snark.thyrsus.com>
Subject: Re: Performance issue exposed by git-filter-branch
Date: Thu, 16 Dec 2010 21:08:55 -0600 [thread overview]
Message-ID: <20101217030855.GB7003@burratino> (raw)
In-Reply-To: <9A686258-A504-4CBB-9993-048B45B5EE6A@irridia.com>
Ken Brownfield wrote:
> I had considered this approach (and the one mentioned by Jonathan)
> but there are no git tools to actually perform the filter I wanted
> on the export in this form.
Keep in mind that the two suggestions were subtly different from one
another.
For the "filter fast-import stream" technique, apparently there is a
tool called reposurgeon[1] to do that. git_fast_filter[2] has the
same purpose, too, if I remember correctly.
For the unpack-trees avoidance technique, true, the only example I
know if is the one I mentioned[3]. The idea would be to sort the
commits you want in topological order and replay them, for each one
going like so:
M 040000 <old tree id> ""
D bad/directory/one
D bad/directory/two
using fast-import from git.git master. (Older versions of fast-import
do not properly handle replacing the root directory, so if that sort
of compatibility is important, you'd have to use a directory listing
and fill in all the _good_ directories instead.)
I'd be glad to look at any work in this direction. Something like it
would be useful for postprocessing when importing from svn repos.
Thanks,
Jonathan
[1] http://esr.ibiblio.org/?p=2718
[2] http://thread.gmane.org/gmane.comp.version-control.git/116028
and links therein
[3] http://thread.gmane.org/gmane.comp.version-control.git/158375
next prev parent reply other threads:[~2010-12-17 3:09 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-17 1:07 Performance issue exposed by git-filter-branch Ken Brownfield
2010-12-17 1:45 ` Jonathan Nieder
2010-12-17 2:31 ` Ken Brownfield
2010-12-17 3:22 ` Jonathan Nieder
2010-12-17 3:37 ` Jonathan Nieder
2010-12-17 1:54 ` Thomas Rast
2010-12-17 2:36 ` Ken Brownfield
2010-12-17 2:51 ` Jakub Narebski
2010-12-21 4:49 ` Ken Brownfield
2010-12-17 3:08 ` Jonathan Nieder [this message]
2010-12-17 5:39 ` Elijah Newren
2011-02-04 21:17 ` Ken Brownfield
2011-02-05 14:21 ` Elijah Newren
2010-12-17 13:01 ` Nguyen Thai Ngoc Duy
2010-12-21 4:59 ` Ken Brownfield
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=20101217030855.GB7003@burratino \
--to=jrnieder@gmail.com \
--cc=david.barr@cordelta.com \
--cc=esr@snark.thyrsus.com \
--cc=git@vger.kernel.org \
--cc=krb@irridia.com \
--cc=newren@gmail.com \
--cc=skimo@kotnet.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.