git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Miklos Vajna <vmiklos@frugalware.org>
To: Csaba Henk <csaba-ml@creo.hu>
Cc: git@vger.kernel.org
Subject: Re: import files w/ history
Date: Fri, 6 Mar 2009 16:33:13 +0100	[thread overview]
Message-ID: <20090306153313.GL4371@genesis.frugalware.org> (raw)
In-Reply-To: <slrngr299k.1t4t.csaba-ml@beastie.creo.hu>

[-- Attachment #1: Type: text/plain, Size: 480 bytes --]

On Fri, Mar 06, 2009 at 01:29:38PM +0000, Csaba Henk <csaba-ml@creo.hu> wrote:
> $ git filter-branch --commit-filter '
>    if [ $# -lt 3 ] || git diff --stat $3 $1 | grep -q 'sys/dev/disk/vn/vn\.c'
>    then
>      git commit-tree "$@"
>    else
>      skip_commit "$@"
>    fi' HEAD

Did you notice --subdirectory-filter? Maybe it would be more efficient
to run --subdirectory-filter sys/dev/disk/vn first, then you can play
with the resulting small repo to suit your needs. :)

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2009-03-06 15:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-03 12:54 import files w/ history Csaba Henk
2009-03-03 13:00 ` Jeff King
2009-03-06 13:29   ` Csaba Henk
2009-03-06 15:33     ` Miklos Vajna [this message]
2009-03-08  0:10     ` Jeff King
2009-03-09  5:15       ` Csaba Henk
2009-03-10 18:03         ` Jeff King
2009-03-11  0:11           ` Csaba Henk

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=20090306153313.GL4371@genesis.frugalware.org \
    --to=vmiklos@frugalware.org \
    --cc=csaba-ml@creo.hu \
    --cc=git@vger.kernel.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 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).