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

Merging (only) subdirectories

From
Howard Miller <howard@e-learndesign.co.uk>
Date
Dec 1, 2010, 11:18 UTC
Message-ID
<AANLkTimZc0r8WBOsE73V=7SKdZgONiCKfYCk7rBrCY3F@mail.gmail.com>

This might take a bit of explaining... and for those familiar with it I'm talking about Moodle themes which will help one or two of you.

We develop themes for Moodle. All themes live in their own self-contained directory. So, when creating a new theme we create a new branch (from some version of Moodle - more in a moment) then a new theme folder, do the dev, and commit/push the results.

We have lots of clients and for one reason or another we have lots of different versions of Moodle and/or different customisations. So each client ends up with their own branch.

The problem comes when Client A wants to purchase Theme B. We can't just merge the theme branch because all the rest of the project contains (potentially) a different version of Moodle. So we have to do lots of messing around to get the theme branch in and/or loose the theme commit history in the process.

What I would like to do is to be able to merge branch B into branch A but ONLY stuff that concerns the theme directory. I don't think this is possible. I'm reluctant to keep themes in a completely separate repo as that just makes testing them more problematic.

Does anybody have any thoughts or advice (assuming this all makes sense)?  Cheers!

Next: Martin Krüger
Message 1 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.