git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "marc zonzon" <marc.zonzon@gmail.com>
To: "Karl Hasselström" <kha@treskal.com>
Cc: "Junio C Hamano" <junkio@cox.net>,
	"Peter Baumann" <waste.manager@gmx.de>,
	"Alex Riesen" <raa.lkml@gmail.com>,
	git@vger.kernel.org
Subject: Re: how to filter a pull
Date: Fri, 4 May 2007 15:13:22 +0200	[thread overview]
Message-ID: <71295b5a0705040613m74215667w72db82e0bc2c1a58@mail.gmail.com> (raw)
In-Reply-To: <20070504101329.GA16446@diana.vm.bytemark.co.uk>

On 5/4/07, Karl Hasselström <kha@treskal.com> wrote:

> It should be straightforward (and efficient) to make a script that
> takes an existing branch and makes a parallel branch that contains
> only one subtree of the first branch. This derived branch can then be
> used as a subproject or whatever.
>
> Or is there some obvious reason why this wouldn't work, or would be
> inconvenient?

This was my initial idea,  pull and filter!, but of course it is
somewhat a hack, you pull inside git, and filter outside git, I don't
know how to keep history, it seems that once filtered the origin of
the subtree is lost. But I lack of git proficiency, I have no
experience wich git core and mainly have used it at the user
'porcelain' level.
I have had some hope that there is some mean to forward the internal
state recording of the database state.
The solution proposed by alex does not seem to be an option, if you
draw from many projects, you cannot host the whole trees because some
nodes are duplicates, and if they are outside your field you don't
bother of merging them.
Moreover I don't know how you mark what belongs to your small project
island, among this big ocean.

So if I have no further advice I think the wiser is to try the raw
script option, at least for the next 6 months the time to git, and my
own proficiency to ripen..

Marc

      reply	other threads:[~2007-05-04 13:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-03 13:17 how to filter a pull marc.zonzon
2007-05-03 15:07 ` Peter Baumann
2007-05-03 18:21   ` Junio C Hamano
2007-05-03 19:32     ` marc zonzon
2007-05-03 20:37       ` Alex Riesen
2007-05-04 10:13     ` Karl Hasselström
2007-05-04 13:13       ` marc zonzon [this message]

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=71295b5a0705040613m74215667w72db82e0bc2c1a58@mail.gmail.com \
    --to=marc.zonzon@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=junkio@cox.net \
    --cc=kha@treskal.com \
    --cc=raa.lkml@gmail.com \
    --cc=waste.manager@gmx.de \
    /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).