git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chris Packham <judge.packham@gmail.com>
To: Ron Garret <ron1@flownet.com>
Cc: git@vger.kernel.org
Subject: Re: Branching a subset of your working tree
Date: Mon, 22 Feb 2010 13:44:32 -0800	[thread overview]
Message-ID: <a038bef51002221344ic966a22x939824fa31020bff@mail.gmail.com> (raw)
In-Reply-To: <ron1-F4D522.13070422022010@news.gmane.org>

On Mon, Feb 22, 2010 at 1:07 PM, Ron Garret <ron1@flownet.com> wrote:
> What is the recommended way to create a branch that contains a subset of
> your working tree?  The use case is creating a distribution branch that
> will be pushed out to a server and I only want to include files that are
> ready to be released.
>
> Thanks,
> rg

Well we did something similar at $dayjob. We had a repository
consisting of code we wanted to release under the LGPL and code we
wanted to keep private.

We ended up using git filter-branch to create 2 new repositories with
commit histories one for the GPL stuff and one for the proprietary
stuff. We then started working on them as 2 separate repositories.

This is possibly a different use case for your situation. We were
happy to wear the fact that our developers would have to re-clone the
2 repos but it sounds like you may want to be able to submit common
code when it is logically complete.

Another suggestion would be to use branches instead of separate repos.
This similar to how git.git is run. i.e. "master" is the stable
branch, "next" is the proving ground for features that have been
cooked sufficiently and "pu" is where new topics get introduced
(disclaimer: this may be an inaccurate representation of how git.git
is _actually_ run but you get the gist). This of course assumes you
are happy for the unstable code to be visible.

      reply	other threads:[~2010-02-22 21:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-22 21:07 Branching a subset of your working tree Ron Garret
2010-02-22 21:44 ` Chris Packham [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=a038bef51002221344ic966a22x939824fa31020bff@mail.gmail.com \
    --to=judge.packham@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=ron1@flownet.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).