I understand how to merge branches together in git, and I love how easy it makes it.
I have a branch that looks like this:
project/
|--subproj1/
| |---(files)
|
|--subproj2/
|---(files)
A colleague has a branch that's made significant changes to both subprojects. More specifically, he's altered them both to depend on a common bit of code in a new subproj3. However, for various reasons, we're not pushing his branch anytime in the forseeable future.
My branch diverges from master only in subproj1, where I'm making subproject-specific enhancements. My subproject is less important than some of the others, and thus has less constraints on what types of changes we can push on it. I'd like to merge in my colleague's subproj1 changes (and his new subproj3 which those changes depend on) but leave my existing subproj2 alone. Sometime in the future, when he merges his project in entirety to master, I'd like his subproj2 changes to merge in normally.
How do I do this with git?