git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Avery Pennarun" <apenwarr@gmail.com>
To: luisgutz <luis@xmos.com>
Cc: git@vger.kernel.org
Subject: Re: copy selected history between repostories
Date: Fri, 18 Jul 2008 13:12:30 -0400	[thread overview]
Message-ID: <32541b130807181012o3b56c413g31667baca1732b01@mail.gmail.com> (raw)
In-Reply-To: <18533605.post@talk.nabble.com>

On 7/18/08, luisgutz <luis@xmos.com> wrote:
>  Is there any way to import that directory into repoA with all it's history,
>  but NOT the history from the other commits?
>  Another way of putting is this: can I make git forget the history of all
>  other commits but those from this directory?

Try cloning the repository, then running git-filter-branch with the
--subdirectory-filter option.  It works quite nicely.

Have fun,

Avery

  reply	other threads:[~2008-07-18 17:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-18 16:58 copy selected history between repostories luisgutz
2008-07-18 17:12 ` Avery Pennarun [this message]
2008-07-19  1:01 ` Nick Andrew
2008-07-19  1:12   ` Johannes Schindelin
2008-07-19  1:21   ` Jeff King

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=32541b130807181012o3b56c413g31667baca1732b01@mail.gmail.com \
    --to=apenwarr@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=luis@xmos.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).