Say I have the following commits on the two branches:
(trunk) A - B - C
(produ) A
I want to merge the work done in C but not necessarily B.
There is a chance that the code in C never touched any of the areas changed by B (ideal).
But it could also be possible that C changed some of the same areas as B. So when I do a merge I get some of B's changes (specifically the changes C made to B's changes).
Is there a way to detect when one commit's changes 'depends' on another commit's changes?
I know I can examine both sets of changes and eyeball it, but surely there must be a better way.