git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Enrico Weigelt <weigelt@metux.de>
To: git@vger.kernel.org
Subject: Re: Merging (only) subdirectories
Date: Fri, 3 Dec 2010 11:59:58 +0100	[thread overview]
Message-ID: <20101203105957.GA14783@nibiru.local> (raw)
In-Reply-To: <AANLkTik-d8oys9h=wFRnyt8sukTsSymaw5LGM39BU2K=@mail.gmail.com>

* Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:

> Also, please consider submodules if theme dir is totally independent.
> I don't see how it makes it problematic for testing. git-subtree [1]
> might be of your interest too.
> 
> [1] https://github.com/apenwarr/git-subtree

Another option could be completely splitting off the themes to
their own branches (eg. using git-filter-branch), check them
out in an separate workdir and use unionfs to get a combined/merged
view of the working trees.

So, you'd actually have to fully separate branches, checked out
in their own worktrees/repos:

a) mainapp (the main application)
b) theme (the current theme you're working on)

For testing/runtime, the webserver gets a union'ed tree,
which just merges both namespaces (from host filesystems's, not
git's view) together. Your actual development happens in the theme
repo only.


On actual deployment (if you're using git here, too), you can simply
merge both branches together (will be just an passive - aka: 
merge-down-only - branch).


cu
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt@metux.de
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------

  parent reply	other threads:[~2010-12-03 11:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-01 11:18 Merging (only) subdirectories Howard Miller
2010-12-01 11:47 ` "Martin Krüger"
2010-12-01 11:56   ` Howard Miller
2010-12-01 11:59   ` Howard Miller
2010-12-01 12:36 ` Nguyen Thai Ngoc Duy
2010-12-01 12:55   ` Howard Miller
2010-12-03 10:59   ` Enrico Weigelt [this message]
2010-12-03 11:12     ` Howard Miller
2010-12-03 20:38       ` Enrico Weigelt

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=20101203105957.GA14783@nibiru.local \
    --to=weigelt@metux.de \
    --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).