git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Merging (only) subdirectories

From
EWEnrico Weigelt <weigelt@metux.de>
Date
Dec 3, 2010, 10:59 UTC
Message-ID
<20101203105957.GA14783@nibiru.local>
In-Reply-To
<AANLkTik-d8oys9h=wFRnyt8sukTsSymaw5LGM39BU2K=@mail.gmail.com>
* Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:
Show 5 quoted lines
> 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
----------------------------------------------------------------------
Previous: Howard MillerNext: Howard Miller
Message 7 of 9 in “Merging (only) subdirectories”
  1. Howard MillerDec 1, 2010
  2. Martin KrügerDec 1, 2010
  3. Howard MillerDec 1, 2010
  4. Howard MillerDec 1, 2010
  5. Nguyen Thai Ngoc DuyDec 1, 2010
  6. Howard MillerDec 1, 2010
  7. Enrico WeigeltDec 3, 2010
  8. Howard MillerDec 3, 2010
  9. Enrico WeigeltDec 3, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.