Re: Merging (only) subdirectories
- From
- Martin Krüger <martin.krueger@gmx.com>
- Date
- Dec 1, 2010, 11:47 UTC
- Message-ID
- <20101201114759.136280@gmx.net>
- In-Reply-To
- <AANLkTimZc0r8WBOsE73V=7SKdZgONiCKfYCk7rBrCY3F@mail.gmail.com>
Show 7 quoted lines
> > 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. >
I would say you are not working best practice with git. The idea of commit is a atomic change of the whole project. It seems like you mixed completely unrelated changes in a commit.
You can try as a resolution: git rebase master (on a temporary-branch) git format-patch master
Strip the patches with filterdiff
Apply the stripped patches to another temporary-brach. Merge to the target-Branch.
Best regards
martin