I have seen plenty of articles related to this but they all seem to focus on determining the branch point only 1 layer deep. For instance:
master: A -- B -- E
\
feature C -- D
They focus on finding "B"
I would like to be able to find the first a branch point in a sub-branch such as:
master: A -- B -- E -- H
\
feature-1 C -- D -- F
\
feature-2 G -- I
I this case I would like to:
- Be able to find D (and preferably the name of the branch "feature-1" as well) Additionally, I don't necessarily know the name of the branch it came from.
- Find this as part of a script so I can run it automatically. So manually looking at the tree is not a valid option.